Debug compiled ES6 nodejs app in WebStorm

前端 未结 5 1982
灰色年华
灰色年华 2020-12-31 05:00

I want to debug a node app that runs from babel compiled ES6 files. I have my ES6 source in an src folder and the babel ES5 equivalent in a b

5条回答
  •  爱一瞬间的悲伤
    2020-12-31 05:32

    As of WebStorm 2016.2 EAP, you don't need any source mapping, or even file watchers. Simply configure your "node" executable to be babel-node, and you can debug to your heart's content, even scripts containing async/await.

提交回复
热议问题