Tools for debugging your node.js modules and event loop
Tools for debugging your node.js modules and event loop
Diagnostics in the evolution of debug pattern that is used in the Node.js core, this extremely small but powerful technique can best be compared as feature flags for loggers. The created debug logger is disabled by default but can be enabled without changing a line of code, using flags.
To create a new logger simply require the @dabh/diagnostics module and call the returned function. It accepts 2 arguments:
Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| modify | The modify method allows you add a new message modifier to **all** diagnostic instances. The passed argument should be a function that returns the passed message after modification. The function receives 2 arguments: |
| namespace | This modifier is enabled for all debug instances and prefixes the messages with the name of namespace under which it is logged. The namespace is colored using the colorspace module which groups similar namespaces under t |
| hash | This adapter uses the window.location.hash of as source for the environment variables. It assumes that hash is formatted using the same syntax as query strings: |
| localStorage | This adapter uses the localStorage of the browser to store the debug flags. You can set the debug flag your self in your application code, but you can also open browser WebInspector and enable it through the console. |
Read, search and edit files inside allowed directories with the Model Context Protocol reference Filesystem server.
Retrieve version-aware library documentation and code examples with Context7 MCP, using resolve-library-id and query-docs.
Use Microsoft’s Playwright MCP server to navigate pages, inspect accessibility snapshots, fill forms and capture browser screenshots.
Connect GitHub MCP to repositories, issues and pull requests with GitHub’s hosted service or a locally run server.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Search Linear issues and projects, inspect work context and manage updates through Linear’s hosted MCP server with OAuth.