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.
If you are looking to implement coffee script in html, take a look at this. You simple need to add a <script type="text/coffeescript" src="app. coffee"></script> to execute coffee script code in an HTML file.
Update: there's currently a redesign of coffeescript compiler that generates source maps, which should enable you to debug your coffeescript in most recent versions of Google Chrome (18 and upwards I think).
I think it's not production-ready yet, but it's worth mentioning.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With