debug exposes a function; simply pass this function the name of your module, and it will return a decorated version of console.error for you to pass debug statements ...
To use this debugger as Arduino library, go to the arduino/library sub-folder. The avr-debugger is the Arduino library which you can copy to your Arduino libraries folders to use it. For more ...