Tool Launch & # 8594; leak and debug console at the same time in xcode

My program crashes when using the device for memory leak in xcode (until it detects memory leaks). I would like to be able to run the debugger console at the same time to find out what is happening. Is it possible? thanks

+8
objective-c iphone xcode
source share
3 answers

Yes - in the simulator at least.

The way to do this is to first start the application in the tools and then stop the application (this simply ensures that the tools are aware of your application and that the tools work and work). Then restart the application in the debugger.

Now go back to the tools and select "attach to process" - select the application from the drop-down list. You can start recording now, and the debugger will also function.

+11
source share

I am not 100% sure, but it is possible, but if so, you can do this by starting with tools or Xcode, and then join the process in another. In Xcode, you do this by going to Run -> Attach to Process. In Tools, you do this by going to the menu "Choose Target → Attach to Process" in a new window.

+2
source share

If you just want to see NSLogs and other debug messages, you can open a console application.

+2
source share

All Articles