Debug NodeJS + ES6 app (Webstorm)

后端 未结 4 1064
别跟我提以往
别跟我提以往 2020-12-28 20:09

I want to use ES6 at both: client and server side. Of course, I can launch my NodeJS server from terminal like babel-node src/app.js, but it makes it impossible

4条回答
  •  时光说笑
    2020-12-28 20:38

    Yes, you can. Please follow this link, http://blog.jetbrains.com/webstorm/2015/05/ecmascript-6-in-webstorm-transpiling/. My take is the full ES6 debug support should be seamless but it is not quite there yet in Webstorm. I'm sure it will get better. The blog provides a workable solution. That said, I would rather debug in node-inspector...and Chrome DevTools for React.

提交回复
热议问题