Debugging with chrome with es6

后端 未结 4 2055
情书的邮戳
情书的邮戳 2021-02-02 08:28

I am trying to use Ecmascript 2015 for my project and I am finding it hard to add breakpoints at specific places (places I thought was logical to have a breakpoint).

I

4条回答
  •  猫巷女王i
    2021-02-02 08:55

    Have you followed all the instructions here?

    https://developer.chrome.com/devtools/docs/javascript-debugging#source-maps

    Also, if you have enable harmony flag set, you won't need to use babeljs to transpile, Chrome will understand ES6/2015 or at least the subset it supports... so maybe turn off babeljs and avoid sourcemaps all together?

提交回复
热议问题