問題描述
有沒有辦法使用 WebStorm 中的調試器單步執行 RunJS 應用程序 (Is there a way to step through a RunJS app using the debugger in WebStorm)
我正在使用 RunJS,這是一個用於構建可執行任務的極簡 Javascript 庫。我想使用 WebStorm 中的調試器單步執行我的代碼。這是可能的還是 JetBrains 需要在其運行配置模板中添加對 RunJS 的支持?
參考解法
方法 1:
When using runjs‑cli (npm install ‑g runjs‑cli
) to run your tasks, you can use Node.js run configuration for debugging:
I'm not however sure how the scripts run with npx can be debugged...
(by Brian Stewart、lena)