Remove all debug expressions from an Xcode 5.1 project

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

+5
source share
1 answer

Here's how you do it:

1) Close Xcode.

2) In Finder, right-click on the Xcode project and select "Show Package Contents", then continue navigation and open the package contents, if necessary:

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

3) Delete the Expressions.xcexplist file.

4) Open Xcode.

Now you should not have expressions for this project.

Some interesting things to note about this file for editing:

  • This is a plist type structure, so you can open it as XML / text.
  • You can manually delete sections of expressions.
  • <ContextState contextName="GLOBAL"> contains all global expressions that can slow down Xcode in some circumstances, i.e. unlimited C ++ containers (without explicit size) to be evaluated in each context of the stack frame, for example std::list<> . If you use C ++, you can find out that the pain in the Xcode user interface is blocked while every debugger step is being executed. That is why I was first looking for this problem.
  • The other <ContextState> sections contain a decorated function name that contains expressions for this context of the stack frame.
+16
source

Source: https://habr.com/ru/post/1200262/


All Articles