Detect if application is run from inside visual studio
- From: docholiday@xxxxxxxxxxxxx
- Date: Sat, 31 May 2008 04:38:34 -0700 (PDT)
Hi,
I am working on an application that installs a system wide keyboard
hook. I do not want to install this hook when I am running a debug
build from inside the visual studio (or else it would hang the studio
and eventually the system), and I can avoid this by checking if the
DEBUG symbol is defined.
However, when I debug the _release_ version of the application, is
there a way to detect that it has been started from inside visual
studio to avoid the same problem? It is very annoying to have to
restart the studio/the computer, just because I had been working on
the release build, and want to fix some bugs using the debugger having
forgotten to switch back to the debug build.
Thanks in advance,
Michael Donn
.
- Prev by Date: Re: Debugging focus related issues
- Previous by thread: Debugging focus related issues
- Index(es):
Relevant Pages
|