6

How could I view iphone logging (eg NSLog) after app restart?

I'm interested in the answer both for using the (a) simulator and (b) an IOS device.

Background - In this case I have some issues no doubt in my code with how the application is supposed to launch, get previous state, and goto the controller/view it was at prior to it being terminated. Hence I want to see the logging as it starts up.

Greg
  • 34,042
  • 79
  • 253
  • 454

1 Answers1

5

For seeing device logs, you can use Organizer tool available in XCode(your device should be connected with system).

For simulator you will have to re-run application from XCode.

Thanks,

Ravin
  • 8,544
  • 3
  • 20
  • 19
  • Ravin - is re-running the application from Xcode actual the same as starting the application from within the simulator after killing it? – Greg Apr 16 '11 at 09:10
  • Yes, restarting asks you if the currrently running application should be quit and that's like exit(0) i.e. applicationWillResignActive won't be called. The same applies to the device. – Kay Apr 16 '11 at 09:40