I am using node-debug to debug a Node.js program.
node-debug my-program.js
It spins up an instance of Chrome inspector connected to the running Node.js program via a WebSocket.
When I make a change to my-program.js
and refresh the inspector, then I find the inspector has been disconnected, meaning I have to restart it. The following message is displayed:
Remote debugging has been terminated with the reason: "web_socket closed". Please re-attach to the new target.
How can I avoid having to continually restart the inspector?