'Is there a way to have Visual Studio debug wakeup events on a mobile?
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?
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | zildjohn01 |
