Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
superdev is currently offline  superdev
Messages: 32
Registered: August 2022
Member
peterh wrote on Fri, 16 September 2022 05:37
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.

Good idea, thanks. Found it: _DEBUG


Win7x64, upp-win-17799
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: include webview/webview
Next Topic: New system of feature requests on our forums- please read and use!
Goto Forum:
  


Current Time: Fri Aug 08 11:35:42 CEST 2025

Total time taken to generate the page: 0.03687 seconds