DEV Community

Chris
Chris

Posted on

Debug Any React App in Seconds

It amazes me how little is known about debugging in the JavaScript world. Everyone prints to the console, even though debugging is so easy and literally only takes seconds to get started.

To prove my point, I recorded a short video where I created a new React app from scratch and debugged it in VSCode in less than 3 minutes. By the way, this works with any JavaScript app, not just React.

In the videos I use npx create-chrome-debugger (npm package) to create a Chrome Debugger shortcut which starts Chrome with remote debugging mode. If you are interested in the details behind that, check out my other article I wrote awhile ago.

Discussion (0)