Open doegox opened 5 years ago
yes, hw debug vs client debug
I started using MF_DBG everywhere on the deviceside since it was a mess before. data debug is also a bad name, It should be client debug, not just related to LF data debugging.
I changed hf mf/mfu dbg to hw dbg. I touched slightly the description of data setdebuglevel. Do we want to move/rename setdebuglevel? If so how/where?
that is a good question. we don't have a client command set, I guess thats why its under data.
For consistency I am all for a rename from setdebuglevel -> clientdbg treated in the way we did the transition of list. Keeping old cmds but they redirect to new place.
What is your take?
I removed entirely hf mf/mfu dbg but we can reintroduce them if you prefer. If we do so, I prefer we print a warning with the new command rather than being a transparent alias, otherwise people will never learn to change their habits.
For setdebuglevel I'm not sure I understood. data setdebuglevel => data clientdbg + keeping data setdebuglevel ?
for mf/mfu dbg , nay, time to let ppl understand its different, keep them removed.
data setdebuglevel -> hw clientdbg ...
how about clientdbg or dbg in root command?
yeah in root that's what I thought of too. dbg is too confusing with hw dbg inho.
pm3 --> clientdbg ?
pm3 --> verbose ?
if Verbose, it could be hooked up to the commands that uses "verbose" or "silent" as parameter :)
or pm3 --> dbg c pm3 --> dbg d
debug client debug device which can be shortend using the shortner to debug c or de h :)
Regarding https://github.com/RfidResearchGroup/proxmark3/commit/2cbe43f269e47cb36817d6b42bb2c76014364e53#commitcomment-34659273 ( all dpbrint* commands should be guarded with DBGLEVEL ifs.) I see two options:
I'm more in favor of the third one...
replace Dbprintf call with a macro, that sets level or not.
MF_DBGLEVEL can only be set by
hf mf dbg N
but it's used across many other technos.We should make the
hf mf dbg
(and aliashf mfu dbg
) a more global command, and make distinction withdata setdebugmode