Debug node.js

Once the connection is established, we can proceed to setting up debugging.


Steps

  1. Start listening for incoming debug connections. This will vary depending on the language and framework.
    In this case, for node, go to package.json and you will see a Debug button hovering over the code.


  1. Click it and choose start:dev from the list.


  1. You will notice the layout of VS Code changing for debugging.


  1. Add a breakpoint.


  1. Access the frontend of the application to generate a request, and you will notice the breakpoint being hit.


Congratulations! You have now got a completely working environment for Remote Development in the cloud.