Used the standard iced REPL its possible to debug an iced coffee script file with the following command:
iced --nodejs --debug server.iced
This seems to generate the source maps which node-inspector picks up correctly (see this image for an example). http://cl.ly/image/2i2k132w1n3H
I'd like to be able to something similar when launching via mimosa. I've tried two basic strategies:
1) Sending a debug signal to the node app which (configured to use express) Mimosa is running.
2) Launching the mimosa app in debug mode based on this discussion ()
In both cases the server.iced has already been transpiled into pure JS. Basically I'm hoping to be able to debug a node js app written in ICS and run via Mimosa.
Any suggestions?
This is brilliant. I had no idea you could do this! And I also had no idea that you could start from a .js file like app.js or worker.js, as dbashford suggested. That makes my life so much easier. I love iced but I don't what to debug its transpiled code.
Okay, honeymoon over. I tried this and I don't get source maps. :(
Were you ever able to get iced source maps working?
I tried David's suggestion about for the mimosa-web-package and was able to get node-inspector working with "node-debug app.js", but not with "iced --nodejs --debug app.js" and not with "iced --nodejs --debug server.iced" either.
With the node-debug version, node-inspector loaded and worked, but I only saw javascript, not the iced coffee-script code.
Anyone know how the source maps actually work? Are there files somewhere, because if so, I can't find them.