简体   繁体   English

使用Webstorm(Babel)进行ES6调试

[英]ES6 debugging with Webstorm (Babel)

Have webstorm v10, babel file-watcher working fine and all is good. 有webstorm v10,babel文件监视器工作正常,一切都很好。

Now i want to debug the code, any way to debug the ES6 file itself or must do it on the JS output file babel compiled? 现在我想调试代码,以任何方式调试ES6文件本身或必须在JS输出文件babel编译吗?

Please advise. 请指教。

There was an issue concerning this in Jetbrains' ticket system . Jetbrains的票务系统中有一个问题。 I think this issue is resolved. 我认为这个问题已经解决了。 Also see the corresponding GitHub issue in the Babel repo. 另请参阅Babel repo中相应的GitHub 问题。

There is an example setup on Jetbrains' blog , basically setting up babel flags such us --source-maps . 在Jetbrains的博客上有一个示例设置 ,基本上设置像我们这样的babel标志--source-maps

This could be a duplicate . 这可能是重复的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM