![]() Click next to the Path mappings field or press Shift Enter. Map the local folders with the folders on the remote host. Alternatively, Click next to the Node interpreter field and configure a remote Node.js interpreter as described above. This article originally appeared on Alex’s Notebook. With the massive amount of JavaScript tools and libraries, a simple text editor no longer makes the cut for web. From the Node interpreter list, select the relevant remote Node.js interpreter accessible vis SSH. How the debugger works in WebStorm is beyond the scope of this article, but now you can set breakpoints in your code and start debugging as you would as though the application were running locally instead of inside of a Docker container. ![]() ![]() Follow the wizard steps and click on Finish when it is done. Click on the installer (also include the NPM package manager) for your platform and run the installer to start with the Node.js setup wizard. If everything is setup correctly, WebStorm will have connected to your Node.js application via port 9229 and will have started the debug session. To set up Node.js on windows you will need to download the installer from this link. After it is started, click on the little bug icon in the top right corner of WebStorm or by clicking “Debug ‘Debug’” in the Run menu (the name you chose for your configuration will appear in the single quotation marks). Once the configuration is finished, we can now run the debugger.įirst, fire up your Docker container as usual. Now WebStorm is correctly configured to debug a Node.js application in a Docker container and all we have left to do is try it out. Works stand-alone, or integrates with your current build. Once you have given it a name of your choice, click OK to close the window. Browsersync is easily integrated with your web platform, build tools, and other Node.js projects. WebStorm “Run/Debug Configurations” Window
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |