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 #58832 is a reply to message #58831] Fri, 16 September 2022 05:37 Go to previous messageGo to previous message
peterh is currently offline  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

 
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 14:31:25 CEST 2025

Total time taken to generate the page: 0.03977 seconds