![]() ![]() ( Shift+F9 on Windows or Linux, Ctrl+D on Mac). The built-in Node.js debugger allows you to step through the breakpoints, change values on the fly, evaluate expressions, and set watches.Ĭlick the Debug button for the created Run/Debug configuration in the top right-hand corner of the IDE, from the Run menu or with the shortcut The same configuration can be used to debug your Node.js code. The Run tool window with console will appear showing the app execution log. Update: Starting with Express 4.0 file Select this new configuration and click Run. You can also add any parameters you need to pass to node ( Node parameters input) or to your application ( Application parameters input) on the start. For example, for a simple Express web app it should be a file that configures and starts the web server. In this new Run/Debug configuration, specify the path to the JavaScript file that needs to be executed. ![]() To create a new Run/Debug configuration, click Edit configurations in the top right corner of the IDE window, or in the main menu Run.Ĭlick Add new configuration and seleсt Node.js type. WebStorm allows you to run Node.js application locally on your machine: you should create a Node.js Run/Debug configuration for the file you need to execute and click Run. Our first post covered the basic WebStorm configuration for working with Node.js projects. Now let’s move on to running and debugging Node.js apps both locally and remotely. ![]() Let’s continue our series of posts and tutorials on Node.js development in WebStorm. Check out a newer blog post on debugging Node.js apps. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |