[Gambas-bugtracker] Bug #2099: to know if I ran in IDE or executable

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Feb 23 18:00:17 CET 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.2099&from=L21haW4-

Comment #1 by Benoît MINISINI:

You can use '#If Exec' to compile code only when an executable is made. It's not a 100% guarantee that you are not in debug mode.

You can check if the 'gb.debug' component is loaded too. This is almost sure in that case that you are running in the debugger.

Benoît MINISINI changed the state of the bug to: Fixed.




More information about the Bugtracker mailing list