Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ES6 debugging with Webstorm (Babel)

Have webstorm v10, babel file-watcher working fine and all is good.

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?

Please advise.

like image 439
Shlomi Avatar asked Jun 29 '15 08:06

Shlomi


1 Answers

There was an issue concerning this in Jetbrains' ticket system. I think this issue is resolved. Also see the corresponding GitHub issue in the Babel repo.

There is an example setup on Jetbrains' blog, basically setting up babel flags such us --source-maps.

This could be a duplicate.

like image 144
eljefedelrodeodeljefe Avatar answered Sep 30 '22 23:09

eljefedelrodeodeljefe