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.
Yes, with node-inspector:
npm install -g node-inspector
By putting the statement debugger
into the source code of your script, you will enable a breakpoint. Then type in a console:
coffee -c -m myscript.coffee
node-debug myscript.js
Node Inspector supports source-maps out of the box, so no extra configuration is needed.
For more information see this post.