Re: mooooooooooore debug messages
Posted by cantcode on Jul 16, 2013; 3:55pm
URL: https://forum.librecad.org/mooooooooooore-debug-messages-tp5708530p5708575.html
Is it a bad idea to change
for (int i=0; i<argc; i++) {
if (QString("--debug") == argv[i]) {
RS_DEBUG->setLevel(RS_Debug::D_DEBUGGING);
}
}
to
for (int i=0; i<argc; i++) {
if (QString("--debug") == argv[i]) {
RS_DEBUG->setLevel(RS_Debug::D_DEBUGGING);
define DBG(a) std::cerr << a; //<--- this is the new line I wanted to be added
}
}
?