Search code examples
iphoneobjective-ciosxcode4

iOS trace in XCode 4?


I'm working on an iOS project and am trying to find out how I can go about getting a trace of all the functions that are being called when I do something on my emulator.

The reason I'm looking for something like this is because I'm not quite sure what listeners are being triggered upon some of my actions on the emulator.

Cheers and thanks again.


Solution

  • Set a breakpoint?

    I'd read Apple's guide to debugging first, but just click the sidebar to the left of the line of code you want to stop at, and a blue indicator will appear. Then when you run the app, it will break when that line of code is hit. From there you can look at the stack using the acessory view on the bottom (where NSLog outputs, there are two views... one has the stack trace).