CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

Node.js with Docker

Last modified: 17 November 2021

Required plugins:

JavaScript and TypeScript, JavaScript Debugger, Docker  -  The plugins are bundled with CLion and enabled by default.

Node.js, Node.js Remote Interpreter  -  Install the plugins on the Settings/Preferences | Plugins page, tab Marketplace.

Required plugins: JavaScript and TypeScript, JavaScript Debugger, Node.js, Node.js Remote Interpreter See Before you start below.

You can quickly bootstrap your Node.js application with Docker to run, debug, and profile it from CLion. The IDE will take care of the initial configuration by automatically creating a new Dockerfile, building and running an image, syncing your source code, and installing npm dependencies in the container.

You can find some examples at Quick Tour of WebStorm and Docker.

Even with automatic configuration, you still need to bind the port on which your application is running with the port of the container. Those exposed ports are available on the Docker host’s IP address (by default 192.168.99.100). Such binding is required when you debug the client side of a Express application. In this case, you need to open the browser from your computer and access the application at the container host through the port specified in the application.