ioBroker.js-controller icon indicating copy to clipboard operation
ioBroker.js-controller copied to clipboard

Add debug output to the CLI

Open AlCalzone opened this issue 6 years ago • 2 comments

In order to debug issues with the CLI, it would be nice to enable some log output. The debug module is pretty good for that, as it allows us to run the CLI commands with the DEBUG variable set, e.g.: $ DEBUG=* iobroker host this

AlCalzone avatar Jan 10 '19 09:01 AlCalzone

Would a general "--debug" parameter also be an idea?

Apollon77 avatar Apr 09 '20 07:04 Apollon77

The previous idea is ready-to-implement, we would just need to add the the module and sprinkle debug("...") calls where appropriate. --debug would require custom logic and I don't think it is required that often.

AlCalzone avatar Apr 09 '20 12:04 AlCalzone