Reputation: 3916
We are trying to develop an app for Windows Mobile and are running into issues with debugging what happens after the device wakes up from sleep. When the device sleeps the debugger disconnects, so we can't debug the wake up event. Is there a way to make VS not disconnect? Or a way to reestablish a connection when the device is woken?
Upvotes: 0
Views: 163
Reputation: 67168
Nope, there's no way to do this. Even from an OS perspective, "wake up" events are some of the hardest things to debug, and there you typically use a JTAG debugger. Your only real option is loads of logging.
Upvotes: 2
Reputation: 11515
I might get hated on for this one, but what about a Sleep(30 * 1000)
right before the troublesome code? (Assuming you're writing a normal user-level app.) 30 seconds should be enough time to connect and attach the debugger to your process so you can debug.
Upvotes: 0