Home » Community » Newbie corner » no variables in debug mode
Re: no variables in debug mode [message #58851 is a reply to message #58832] |
Sat, 17 September 2022 16:57   |
superdev
Messages: 32 Registered: August 2022
|
Member |
|
|
peterh wrote on Fri, 16 September 2022 05:37There is a call "IsDebuggerPresent()" which tells you if a debugger is attached.
(This will probably also return "true" if the program was compiled in release mode and a debugger is attached)
Also there are logging macros which are only compiled in debug mode.
So there must be a macro (preprocessor symbol) which is defined in debug mode only, but I do not know the name.
Possibly study the logging macros and their source to see how this works.
Alternatively you can add your own macro to the compiler options.
Good idea, thanks. Found it: _DEBUG
Win7x64, upp-win-17799
|
|
|
 |
|
no variables in debug mode
By: superdev on Fri, 02 September 2022 21:58
|
 |
|
Re: no variables in debug mode
By: peterh on Fri, 02 September 2022 23:05
|
 |
|
Re: no variables in debug mode
By: superdev on Mon, 05 September 2022 00:49
|
 |
|
Re: no variables in debug mode
By: Oblivion on Mon, 05 September 2022 00:54
|
 |
|
Re: no variables in debug mode
By: peterh on Mon, 05 September 2022 05:01
|
 |
|
Re: no variables in debug mode
By: superdev on Thu, 15 September 2022 21:29
|
 |
|
Re: no variables in debug mode
By: peterh on Fri, 16 September 2022 05:37
|
 |
|
Re: no variables in debug mode
By: superdev on Sat, 17 September 2022 16:57
|
 |
|
Re: no variables in debug mode
By: superdev on Fri, 11 April 2025 12:28
|
 |
|
Re: no variables in debug mode
By: superdev on Tue, 15 April 2025 13:44
|
Goto Forum:
Current Time: Fri Aug 08 11:35:42 CEST 2025
Total time taken to generate the page: 0.03687 seconds
|