News for hackers. Stuff that matters.
Re:Await and Defer in Coffeescript core by politician on Saturday December 17, 2011 @10:39PM (#3365829)
Would your opinion change if you could debug CS natively?
Re:Await and Defer in Coffeescript core by ricardobeat on Sunday December 18, 2011 @12:52AM (#3366064)
Probably not. I still think in javascript and rely on the assumption that I can peek at the compiled output anytime. Looking forward for source-mapping though :)
Re:Await and Defer in Coffeescript core by ghotli on Sunday December 18, 2011 @12:50AM (#3366058)
How would this even work? I'm curious.
Re:Await and Defer in Coffeescript core by rayiner on Sunday December 18, 2011 @01:07AM (#3366078)
The same way debugging between machine code and source code works when all you really have from the processor is an instruction pointer. :D

You maintain a two-way mapping between file names/line numbers in the CS source and file names/line numbers in the JS source. When the debugger throws an exception with a line number, just translate it before presenting it to the user. For break points and stepping, go in the opposite direction.