-
Notifications
You must be signed in to change notification settings - Fork 963
Closed
Description
It would be nice to enable debug in browsers programmatically.
I would prefer something like that:
const debug = require('debug').enable('MyRootNamespace:MyServices:*');
// or for multiple namespaces
const debug = require('debug').enable(
[
'MyRootNamespace:MyServices:*',
'MyRootNamespace:MyDataSources:*'
]
);
The solution to use localStorge does not work in Safari´s private mode anyway. Would be nice to have also the debug messages there ...
Also it would be nice to have the ability to deny enabling debug by setting localStorage.debug. The source code of my current project is only provided in a uglified version to protect my intellectual property and business secret. I don´t want anyone can enable debug information by setting localStorage.debug to '*'.
syuilo, Nickforall, redonkulus and gmcdevvespakoen
Metadata
Metadata
Assignees
Labels
No labels