Debugger does not stop at breakpoints when working on iPhone

I want to test my application on the device and see all NSLOG on the console while running ap on the device. I also want to stop the application at breakpoints, but the application does not stop at breakpoints and does not print NSLOG. I unchecked the characters lazily. I am using a debug build. Please tell me how to achieve this. Thanks in advance.

NOTE. After running the application code x, the application is not debugging (I think the problem is that xcode transfers the application to the device and then disconnects from the device)

0
source share
3 answers

Try setting a breakpoint in the doneFinishLaunchingWithOptions file, then the view will appear in the view on which you want to check the breakpoints. mostly anywhere before your code (which you want to test) that are certainly called.

I had the same problem before not quite sure why this was happening. he likes to prepare Xcode for finding breakpoints :)

0
source

Do you have breakpoints in xCode?

enter image description here

It should look like this:

enter image description here

+4
source

It looks like you are working with a jailbreak device. Is it really so? If so, then the "official" answer should be "disable MobileSubstrate add-ons."
I managed to run the application in debug mode, after:

  • Doing what you mentioned (received this error message).
  • Double-click the home button, while holding the application icon, close the application.
  • Run it again with Xcode.
  • Repeat if necessary.
0
source

All Articles