pixiewps icon indicating copy to clipboard operation
pixiewps copied to clipboard

Make debug output available with command line option

Open drygdryg opened this issue 3 years ago • 1 comments

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).

drygdryg avatar Nov 18 '20 14:11 drygdryg

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) { .... }

rofl0r avatar Nov 18 '20 16:11 rofl0r