0

I want to test my app on device and see all the NSLOGs on console while runnig the ap on device.I also want to stop the app at breakpoints but app does not stop on breakpoints and not print NSLOGs .I have unchecked load symbols lazily .I am using a debug build .Please tell me how to achieve this Thanks in advance

NOTE:After starting the app x code shows the app being debugged is not being run (I think the problem is after xcode transfers the app to device then it disconnects with device)

Joshua Nozzi
  • 60,946
  • 14
  • 140
  • 135
Pankaj Kainthla
  • 2,439
  • 5
  • 31
  • 61

3 Answers3

4

Do you have breakpoints enabled in xCode?

enter image description here

Should be looking like this;

enter image description here

Thizzer
  • 16,153
  • 28
  • 98
  • 139
0

Sounds like you're working with a jailbroken device .. Is that the case ?
If you are , the "official" answer should be "disable mobileSubstrate addons".
I've managed to run the app in debug mode , after :

  1. Doing what you mentioned (got that error message).
  2. Double tap home-button , hold the app icon, close the app..
  3. Run it again from XCode.
  4. Repeat again if necessary.
Nir Golan
  • 1,336
  • 10
  • 24
0

Try to set breakpoint in the didFinishLaunchingWithOptions then the viewwillappear of the view you want to test the breakpoints on. basically any places before your code (which you want to test) which surely get called.

I had same problem before not exactly sure why does it happen though. it's like preparing Xcode to look for breakpoints :)

k-thorat
  • 4,873
  • 1
  • 27
  • 36
  • Then hard to say what exactly going on..give a try to restart everything... xcode if needed mac and iphone too. – k-thorat Jul 18 '11 at 14:12