- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a way to check on whether the code is running in debug mode ? (similar to the ASSERT macro in MSc.
Tim
Tim
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not that I know of. What I do is define a DEBUG preprocessor symbol in my Debug configuration and then use !DEC$ IF DEFINED (DEBUG) to test for it and display a message.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I figured as much, except if one forgets to reset the symbol back when going to release things an get yucky.
Thanks anyway.
Tim
Thanks anyway.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No need to reset it. Just make sure that "Win32 Debug" is showing in the Settings window, and your definition will apply to that configuration only.
Steve
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page