Login  Register

mooooooooooore debug messages

Posted by cantcode on Jul 08, 2013; 8:41am
URL: https://forum.librecad.org/mooooooooooore-debug-messages-tp5708530.html

In LibreCAD-master/libraries/libdxfrw/src/libdxfrw.cpp
line 1770, there is:
DBG("dxfRW::processHeader\n");
but line 23-28 says
#ifdef DRW_DBG
#include <iostream> //for debug
#define DBG(a) std::cerr << a
#else
#define DBG(a)
#endif

searching for DRW_DBG resulted in no findings
So is it possible to define DRW_DBG in:

librecad/src/main/main.cpp
line ca. 99
for (int i=0; i<argc; i++) {
                if (QString("--debug") == argv[i]) {
                RS_DEBUG->setLevel(RS_Debug::D_DEBUGGING);
                }
        }

so we can get moooooooooooooooore debugging messgages
Does that make sense?
Or is it possible to define DRW_DBG when executing LCad?
something like: librecad --debug 2  --define DRW_DBG >out.log  ???