Starting the Debugger for Web Services In Node

Yuping Wang
2 min readMay 26, 2020

Last week, I focused on developing and deploying the front (see here). This week, I started to work on the back-end web services. We all have our own unique way of diving into and learning new things. For me, when it comes to learning software, I find myself heavily rely on the ability to step through the codes in the debugger.

Of course in order to debug web services, you also need a “client” to call your web services. To achieve that, you can either develop dedicated front end applications that calls your web services. Or you can use tools such as postman to call your web services through POST/GET, etc. For the current post, we will focus only on how to launch the debugger assuming that some clients will be calling the web services.

Here’re two alternative options I found useful to start the debugger for web services developed in node.

Debug in Visual Studio Code (My preference)

Select “node” in the initial setup. Visual studio code will launch your node server in the debug mode. From there, you have all the usual debugging functionalities available for you, e.g. setting up break points, step through/in/out, inspecting call stack, etc.

Debug in Chrome

--

--

Yuping Wang

beginning a new journey by launching my own startup in the middle of the pandemic. I am passionate about sharing my learning. www.linkedin.com/in/yupingwyp