DEV Community

Discussion on: Stop only using console.log and use the built-in node debugger

Collapse
nyxtom profile image
Tom Holloway 🏕 Author

Indeed, another common method I've used for years is just add a number of debug statements and control the level of debug logs with DEBUG=pattern*. Helps for when you need a quick overview of what's happening over time without wanting to step into things. This post is mainly referencing the uncommonly used chrome debugger for nodejs backend code that is available.

Collapse
leob profile image
leob

Good points, DEBUG=pattern* has occasionally also worked for me, or putting breakpoints at specific places rather than trying to step into things.