In this tutorial, I use CLion. But I think it will also works in WebStorm or IntelliJ which supports Makefile.
-
Follow nodejs/node/BUILDING.md to setup environment and build a project before we start CLion.
for example:
git clone https://github.com/nodejs/node.git node cd node ./configure --debug make -j8
make sure you have ran compilation successfully before next step.
-
Open CLion.
-
In popup, click 'OK'
-
Open 'Settings/Build, Execution, Development/Makefile'
- Change 'Commands' in 'Pre-configuration...' to './configure --debug'
- Use your own build options, like '-j32' or '-j4' depends your device.
-
Waiting for 'Updating indexes' done