Forum > General

[SOLVED] Detect if running in the IDE

(1/2) > >>

pcurtis:
How to detect if my program is running in the IDE?

dbannon:
I bet someone knows a better way but ...

In the IDE, set an environment variable of you choice, if you can find it with GetEnvironmentVariable() you must be in the IDE.

Davo

pcurtis:
That will be fine, just where do I set the variable?

Martin_fr:
You mean: In the IDE or "under a debugger"

You can run from the IDE, but without debugger.
And you can run in a debugger, but outside the IDE.

Martin_fr:
Afaik on win64, with gdb 7.3.5 environment can not be set. But please double check.
With any other gdb it should work.

Navigation

[0] Message Index

[#] Next page

Go to full version