Friday, 16 November 2018

Need help in remote Nodejs debugging.

NodeJs server on a raspberry pi with ip : RASP_IPVSCode running on local machine.Created a ssh tunnel using putty by ->Going to SSH -> Tunnels -> Source : 9229 Destination:RASP_IP:9229Going back to Session -> Opening SSH connection.After putty connects, use nodemon --inspect index.js to start node server.Opened VSCode launch.json and given this config: { "type": "node", "request": "attach", "name": "Attach to Raspberry Pi", "protocol": "inspector", "address": "localhost", "port": 9229, "localRoot": "${workspaceFolder}", "remoteRoot": "/home/pi/MyGit" } VSCode give error Cannot connect to target :read ECONNRESET.​Please help.

Submitted November 16, 2018 at 06:14PM by coold007

No comments:

Post a Comment