debug
debug copied to clipboard
A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers
https://github.com/chalk/supports-color/releases/tag/v9.0.0 supports-color moved to ESM so require() always fails. Just add a breakpoint/log [here](https://github.com/debug-js/debug/blob/master/src/node.js#L115) to confirm. ``` Error [ERR_REQUIRE_ESM]: require() of ES Module /home/node_modules/supports-color/index.js from /home/node_modules/debug/src/node.js not supported. Instead change...
From the issue: https://github.com/debug-js/debug/issues/746 Building on the outdated PR: https://github.com/debug-js/debug/commit/9a1953efd2e31e3dbe4dad920d047ad51510da24 Completed with mocha tests.
I use the debug module a lot. It’s great. One thing I’m finding an issue though is with CLI apps, because these tend to use console.log with something like [chalk](https://www.npmjs.com/package/chalk)...
When debugging a web worker script with `Pause on caught exceptions` enabled it's quite distracting that the `debug` package throws every time and I have to press continue  I'd...
This PR fixes https://github.com/debug-js/debug/issues/746 It comes complete with mocha tests. @Qix- Apologies for the mess on on the previous PR https://github.com/debug-js/debug/issues/746 as forgot about the PR completely and have been...
https://github.com/microsoft/playwright uses debug module for logging. While using playwright i observed that when using DEBUG_FILE env variable to redirect these logs to file, it doesnt show time whereas when we...
When using native esm in Node, it's not possible anymore to use the pattern ```js const debug = require('debug')('namespace'); ``` and we have to do ```js import createDebug from 'debug';...
Currently the package.json has this section: ``` "peerDependenciesMeta": { "supports-color": { "optional": true } }, ``` but there is no peerDependencies defined there at all. Am I missing or `peerDependenciesMeta`...
It is possible to redirect the output of some namespaces to files (by assigning a function to `debug.log`), whilst maintaining others to stderr (by keeping `debug.log` undefined.) But all lines...
This PR addresses issue #873 Hi, this is my first contribution to the project so I took a simple documentation issue. Since I'm new to the project, please let me...