从Xcode 5.1项目中删除所有调试表达式 [英] Delete all debug expressions from Xcode 5.1 Project

查看:447
本文介绍了从Xcode 5.1项目中删除所有调试表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用C ++和XCode 5.1时,我不小心添加了调试表达式,现在每次我尝试查看我添加了此表达式的函数的堆栈时,XCode崩溃。我不知道如何摆脱这个表达式没有点击那个功能,所以我有点失去了!我发现了一个Expressions.something文件的引用,但那是为XCode 4,我没有看到它在任何地方为XCode 5.任何想法?

解决方案

这样做:



1)关闭Xcode。



)在Finder中,右键单击Xco​​de项目并选择显示包内容,然后在需要时继续浏览并打开包内容:



[your_workspace] .xcworkspace / xcuserdata / [login_user_name] .xcuserdatad / xcdebugger / Expressions.xcexplist



3)删除Expressions.xcexplist文件。



4)打开Xcode。



您现在没有为此项目设置任何表达式。


$ b




  • 这是一个plist类型的结构,因此你

  • 您可以手动删除范围表达式的部分。

  • < ContextState contextName = GLOBAL> 包含所有可能导致Xcode在某些情况下减速的全局表达式,即。没有长度的容器必须在每个堆栈框架上下文中进行评估,例如 std :: list<>

  • 其他< ContextState> 部分包含装饰函数名称,其中包含该堆栈框架上下文的表达式。


I accidentally added a debug expression while working with C++ and XCode 5.1, and now every time I try to view the stack of the function I added this expression to, XCode crashes. I have no idea how to get rid of this expression without clicking on that function, so I'm a bit lost! I have found references to an Expressions.something file, but that was for XCode 4, and I don't see it anywhere for XCode 5. Any ideas?

解决方案

Here's how you do it:

1) Close Xcode.

2) In Finder, right click on your Xcode project and choose 'Show package contents' then keep navigating in and opening package contents when required to:

[your_workspace].xcworkspace/xcuserdata/[login_user_name].xcuserdatad/xcdebugger/Expressions.xcexplist

3) Delete the Expressions.xcexplist file.

4) Open Xcode.

You should now have no expressions set for this project.

Edit: Some interesting things to note about this file for editing purposes.

  • It is a plist type structure, hence you can open it as XML / text.
  • You can manually remove sections of scoped expressions.
  • <ContextState contextName="GLOBAL"> contains all the global expressions that can cause Xcode slowdown under some circumstances, ie. containers with no length that must be evaluated in each stack frame context such as std::list<>.
  • Other <ContextState> sections contain the decorated function name containing expressions for that stack frame context.

这篇关于从Xcode 5.1项目中删除所有调试表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆