Make debug output available with command line option
drygdryg opened this issue · 1 comments
drygdryg commented
It would be convenient to analyze the vulnerability of routers if debug output (DEBUG_PRINT
macros) were available through the command line flag. It can be --debug
or verbosity level 4 (-v 4
).
rofl0r commented
iirc debug on/off is a compile time option because there was concern it might make the binary slower. if you can show numbers that the speed is essentially unchanged for a binary with debug option compiled in but disabled, and one without it compiled in, then i guess nothing speaks against adding an option.
basically the code would just need to set a flag to 1 if --debug is set, and change the DEBUGPRINT macro to if(debug_flag) { .... }