![]() |
Detect running from IDE - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Detect running from IDE (/showthread.php?tid=2441) |
Detect running from IDE - mdijkens - 02-11-2024 I regularly want to know if I'm running from the IDE (during development) or not. To set the current working directory correct or to stop with End instead of System etc. I now use this code which seems to work for some time already: Code: (Select All) Dim Shared DEVELOPMENT As _Byte I would love to have a _DEVELOPMENT variable out-of-the-box as part of QB64pe Sidenote: Why is _CWD not correct initialized when not running from the IDE; It then points to the directory containing your exe instead RE: Detect running from IDE - FellippeHeitor - 02-12-2024 This is 100% guaranteed to work: Code: (Select All)
Unless, of course, you have manually set QB64DEBUGPORT in your environment for whatever obscure reason. |