DEV Community

Justino Contingo
Justino Contingo

Posted on

Debugging Node.js? console.log isn't enough anymore

We've all been there.

Deeply nested objects. Circular references. Repeated structures.

At some point, you stop debugging and start trying to understand what you're even looking at.

That's why I built DumpKit — a small debugging tool inspired by Laravel's dump() and dd(), designed for Node.js.

import { dump } from 'dumpkit';

dump(complexObject);
Enter fullscreen mode Exit fullscreen mode

It handles common debugging pain points:

  • Safe handling of circular references
  • Support for shared references
  • Large and deeply nested structures

You can also inspect data in different formats:

dump(data, { view: 'tree' });   // hierarchical view
dump(data, { view: 'table' });  // structured collections
Enter fullscreen mode Exit fullscreen mode

Another useful feature is dump and pause (dp):

await dp(data);
// Execution pauses until you press ENTER
Enter fullscreen mode Exit fullscreen mode

This makes it easier to inspect application state at critical points in execution.

DumpKit also exposes a structured internal representation (AnalysisNode), which can be used to build custom debugging tools on top of it.

DumpKit doesn't replace the console.

It simply gives you more clarity when complexity grows beyond simple logs.

Debugging isn't just about finding bugs — it's about understanding structure.

GitHub: https://github.com/Justino-code/dumpkit

Top comments (0)