Debug/Verbose mode with log file output

Dear All,

what would it take to create a precompiler flag that enables/disables logging
of found hardware and data streams. It is really hard to figure out what happens
if e.g. the only message is mag0 not found. If one could enable an output that would
log each “if xxxx start” as a found hardware type debugging could be a breeze.

Thanks G

I agree that would be helpful, but what should we display that’s meaningful? In the mag0 case we at least could say if it’s internal or external.
There’s already a subsystem message for each type, but I don’t think it’s currently working. https://github.com/PX4/Firmware/blob/master/src/modules/commander/commander.cpp#L2398