Search code examples
javascriptwebstorm

Is there a way to step through a RunJS app using the debugger in WebStorm


I'm using RunJS, a minimalist Javascript library for building executable tasks. I'd like to step through my code with the debugger in WebStorm. Is this possible or will JetBrains need to add support for RunJS in their Run Configuration Templates?


Solution

  • When using runjs-cli (npm install -g runjs-cli) to run your tasks, you can use Node.js run configuration for debugging:

    enter image description here

    I'm not however sure how the scripts run with npx can be debugged...