debug icon indicating copy to clipboard operation
debug copied to clipboard

A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers

Results 97 debug issues
Sort by recently updated
recently updated
newest added

Sorry for posting offtop, but think this may be usefull for everyone who used to work in js world and now switching to golang. So the question is, is there...

As detailed in an issue in our tool, when unused, a `%s` specifier will catch the timestamp inserted by this package. https://github.com/specs-feup/clava/issues/149#issuecomment-2104694255 Example: Notice the second line of regular text...

Specifically, https://github.com/debug-js/debug/blob/bc60914816e5e45a5fff1cd638410438fc317521/src/node.js#L32 is triggering it. See also https://github.com/nodejs/node/pull/55338#issuecomment-2411753894 and https://github.com/nodejs/node/pull/55397. I'm not sure the best solution here. One is to use optional peer deps to force `supports-color` to be `<...

I do not understand why localstorage is used to cache the enabled namespaces. It seems to just cause confusion with unexpected behavior. #901 #536 #871 #534 #337 I had to...

![Image](https://github.com/user-attachments/assets/3cb3baf2-875b-48d2-952f-5762cf6c6570) Why browser version doesnt contain .extend method? It easily make package incompatible with the browser/serverless (Related https://github.com/gramiojs/gramio/issues/10) As a workaround i switch from `.extend` to just `createDebugger('some:1:2:3')`

I use `jsdom` in a project in Deno. `jsdom` uses `debug` as a dependency: ``` └─┬ [email protected] ├─┬ [email protected] │ ├─┬ [email protected] │ │ └── [email protected] deduped │ └── [email protected]...

If the DEBUG env variable contains multiple items separated with spaces, then only the first one is used. For example: export DEBUG="APP_X APP_Y APP_Z" Then, only the APP_X is enabled...

I use the package [`dotenv`](https://github.com/motdotla/dotenv) and the `dotenv.config();` function to load my config from a `.env` file. I would like my default .env file to contain the config: ``` DEBUG=my-app:*,-my-app:verbose*...

Some browser-like environments do not support localStorage nor process.env, but can be provided environment variables because they automatically get inlined (i.e. process.env.XYZ gets replaced by whatever value XYZ is during...

We are seeing some interesting side-effect of the [printf-style feature](https://github.com/debug-js/debug?tab=readme-ov-file#formatters) outlined here: https://github.com/sequelize/sequelize/issues/17448 Long story short, we are using debug to print SQL queries that are executed against database servers...