Debugging CoffeeScript line-by-line

前端 未结 6 1740
遥遥无期
遥遥无期 2021-01-30 10:20

Is there a way to debug CoffeeScript line-by-line?

I understand that it compiles into Javascript. But this sounds like it could make it a pain to debug.

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 10:52

    if you are running coffeescript from the terminal you can debug it line-for-line using node-inspector, launching your script this way:

    coffee --nodejs --debug-brk yourscript.coffee
    

提交回复
热议问题