News for hackers. Stuff that matters.
Re:Offer HN: I'll answer your javascript questions by psykotic on Saturday December 18, 2010 @02:51AM (#2019125)
That's a pretty lame excuse. There also isn't a simple line for line relationship between C code and x86 code or C# code and MSIL code. But there's a standard solution to this problem when debugging: let the compilers generate mapping information.

For something like CoffeeScript, you'd probably have a debug compilation mode where each line of generated code is annotated with comments containing line numbers or full lines of code from the original CoffeeScript source code. It wouldn't be as convenient as a true source-level debugger for CoffeeScript, but it should suffice.

Re:Offer HN: I'll answer your javascript questions by Scriptor on Saturday December 18, 2010 @05:18AM (#2019272)
As far as I'm aware, there is no such debugging mode for CoffeeScript. The current method of debugging really is to look in the JS and then find the corresponding CS code. They do make this easier by keeping the JS code as readable as possible.
Re:Offer HN: I'll answer your javascript questions by psykotic on Saturday December 18, 2010 @09:33AM (#2019534)
Oh, I know. I was saying that it would be doable to implement.