

In the dialog that opens, specify the URL of the application starting page, for example, localhost:3000 for Express applications, and the browser to use.Ĭreate a run/debug configuration as described above or modify an existing one and click Run in the dialog.Īlternatively, select the newly created run configuration from the list on the main toolbar and click. Click to expand the Before launch area, click, and select Launch Web Browser from the list. To open the application in the browser automatically, configure a before-launch task.

In the Application parameters field, specify the Node.js-specific arguments to be passed to the application on start through the process.argv array. For more information, refer to the Node.js official website. For example, you may want to enable an experimental Node.js feature or pass another option. Specify the Node parameters that customize the start of Node.js. In the JavaScript File field, specify the path to the main file of the application that starts it (for example, bin/www for Express applications).
#CLI OPTION TO DEBUG NODE SCRIPT IN CHROME DEVTOOLS WINDOWS#
You can also choose another configured local or remote interpreter or click and configure a new one.įor more information, refer to Configuring remote Node.js interpreters, Configuring a local Node.js interpreter, and Using Node.js on Windows Subsystem for Linux. In most cases, WebStorm detects the project default interpreter and fills in the field itself. If you choose the Project alias, WebStorm will automatically use the project default interpreter from the Node interpreter field on the Node.js page. The Run/Debug Configuration: Node.js dialog opens. In the Edit Configurations dialog that opens, click the Add button ( ) on the toolbar and select Node.js from the list. Alternatively, select Edit Configurations from the list on the toolbar. WebStorm also uses this configuration to start the debugger together with Node.js applications.

WebStorm runs Node.js applications according to a run configuration of the type Node.js. For more information, refer to Managing plugins. Make sure the Node.js and JavaScript Debugger required plugins are enabled on the Settings | Plugins page, tab Installed. You can debug applications that are started from WebStorm as well as attach to already running applications. WebStorm helps you run and debug your Node.js applications.
