[solved] Detecting debugger

Started by
2 comments, last by Volgut 14 years, 1 month ago
Hello, I would like to add a special dialog box to my assert function which will show different information depends if the application runs under Visual Studio or not. Does anyone know if there is a function in VS which I can use to detect the debugger? I was also thinking about detecting process 'devenv.exe'. My application is written in C++ and I am using Visual Studio 2008. Regards, To [Edited by - Volgut on March 13, 2010 2:44:36 AM]
Advertisement
Did you try the IsDebuggerPresent() function?
What an unintuitive name ;-)
Thanks! This is exactly what I was looking for :-)

Regards,
Tomasz

This topic is closed to new replies.

Advertisement