![]() ![]() What am I doing wrong? Please help, anyone! I have opened up port 9229 in the firewall settings for the server (I've tried TCP and UDP). There is a little red bubble over the "5: Debug" icon at the bottom saying it can't connect, and sometimes it says "Closed Explicitly". However, when I don't set up the SSH tunnel, start the node server the same way, and set up an "Attach to Node.js/Chrome" profile with the host as the URL or IP of the server, WebStorm can never connect. Then when I hit the debug button, it connects through the SSH tunnel, and the node.js process runs just fine, stopping and debugging at all my breakpoints. I set up an SSH tunnel (using this method: ), and I set up an "Attach to Node.js/Chrome" debug configuration, with Host: localhost and Port: 9229. I run the node server with NODE_ENV=development node -inspect=9229 -inspect-brk build/start.js, and it says it's waiting and listening ( Debugger listening on ws://127.0.0.1:9229/a61485f2-aef8-4719-901d-4d5ad9d1e6cd). ![]() This configuration will definitely help you get started understanding the framework and squashing those pesky scripting bugs.I'm trying to debug on a live server running a Node.js webserver (Express, TypeScript). ![]() This debug configuration may be obvious to a seasoned node developer, but if you’re a language transplant like me, you may need help getting started with debugging serverless using WebStorm. If you launch the Configuration as debug, the WebStorm debugger will automatically be hooked into the node process.
0 Comments
Leave a Reply. |