Assuming you are using Node.js. It provides a node inspector for debugging files on the server side on the Chrome browser itself, with the same experience given in browser debugging.
Below is a link to configure the node inspector.
Below are the steps to install the node inspector.
1) Install node inspector with command
npm install -g node-inspector
2) Run the node inspector. You can run it from any directory.
node-inspector
As a result, you get the url for debugging in the browser
3) Restart the node server in debug mode
change the directory to your project server folder
cd /path/to/your/project/directory/nodejs/server node --debug server
4), as soon as the server is started in debug mode successfully, copy the URL obtained as a result of the above and open it in the Chrome browser . There you can see all the files on the server side of Node.js in the source section of the debugger , where you can apply breakpoints on the server javscript files that were written.
source share