5 Debugging Tools Every JavaScript Programmer Should Know and Use

before resorting to Stack Overflow and existential crisis

JavaScript debugging tools to know and use: Google Dev Tools, React Dev Tools, Node Inspect, Postman and Webpack

1. What do you expect that first expression to do?

2. Why do you expect it to do that?

3. Does it actually do it?

When you need to verify a value

IN THE BROWSER: Beware of logged values with a light-blue box with an ‘i’. It may have been updated after its runtime.
iOS: Cmd + Opt + I
Windows: Ctrl + Shift + I
IN THE BROWSER: Execution pauses at the debugger allowing you to inspect values.
IN THE BROWSER: The React tab shows props and state values if they exist for the selected element.

When you need to check if a request was sent

IN THE BROWSER: The Chrome Dev Tools Network tab shows server calls. Clicking on a call displays its headers plus other info.

When you need to debug server-side code

node --inspect PATH_TO_YOUR_SERVER_FILE

When you need to check a server response

IN THE POSTMAN APP: Choose a request method, enter an endpoint, add Auth requirements, and click send. The response will be displayed in the body tab.

When you have a syntax error

IN THE TERMINAL: If Webpack can’t build, it will throw an error providing the exact file, line, character and error type.

If the bug persists

--

--

Software Engineer rooted as a Creative. Writing how-tos and about 'ahas' and 'gotchas' of making.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kamie Robinson

Software Engineer rooted as a Creative. Writing how-tos and about 'ahas' and 'gotchas' of making.