How do you determine at runtime whether the visual studio debugger is attached to your process. I've seen instructions for how to do this in .NET, but my process is a native C++ process. Support for detecting Just-in-time debugging would be nice but not a strict requirement.
So what you can do is launch the application, then from Visual Studio click Debug > Windows > Call Stack.
The Win32 call IsDebuggerPresent()
sounds like it ought to work.
Use IsDebuggerPresent
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With