this is how I used to used it in common modules.
const debuger=require('debug')("namespace")
I set an environmental variable DEBUG="namespace"
and when i start the app, i can use the debugger
.
However I could not figure out how to use it with import/export
staments.
import debugger from "debug" // how can i pass () here
debugger
is a reserved keyword, so if you changed it toimport debug
or really anything else, it will work – Solander