2

When an iOS app is woken up the applicationDidBecomeActive delegate is called.

If a device is attached to the debugger then the app will never sleep.

How do I debug problems in the wake up code?

Ben
  • 10,931
  • 9
  • 38
  • 47

1 Answers1

2

just delegate your applicationDidBecomeActive to other method and unittest it. You are testing your code, not Apple's wakeup callback mechanism.

Mauricio
  • 5,854
  • 2
  • 28
  • 34
  • Very good point but my bug is related to network stuff that I only see on wake up and I want to step through it all. – Ben Feb 01 '11 at 02:47