Hello guys could anyone explain what is the point in: #define DEBUG and #define NDEBUG?
when should we use them and how?? I'd like to see some examples
any help is highly appreciated
ProDev7 0 Newbie Poster
Recommended Answers
Jump to Postdepends on the compiler. Generally, DEBUG is defined when you want to compile the program for debugging -- the compiler adds a great deal of symbol information and data so that you can use a debugger to single-step through the program and view the value of variables at any given …
Jump to PostAs Ketsuekiame says, be aware that there is no strict definition of "Debug mode" and "release mode". If your IDE provides these two modes, all it does it turn on or off a number of compiler options depending on which mode you pick; options chosen by someone else with the …
All 8 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
ProDev7 0 Newbie Poster
Ketsuekiame 860 Master Poster Featured Poster
ProDev7 0 Newbie Poster
Ketsuekiame 860 Master Poster Featured Poster
Moschops 683 Practically a Master Poster Featured Poster
ProDev7 0 Newbie Poster
ProDev7 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.