Home » Community » Newbie corner » no variables in debug mode
Re: no variables in debug mode [message #58832 is a reply to message #58831] |
Fri, 16 September 2022 05:37   |
 |
peterh
Messages: 108 Registered: November 2018 Location: Germany
|
Experienced Member |
|
|
There 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.
[Updated on: Fri, 16 September 2022 06:28] Report message to a moderator
|
|
|
 |
|
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 14:31:25 CEST 2025
Total time taken to generate the page: 0.03977 seconds
|