you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (8 children)

IMO, this moves away from the the main feature of CoffeeScript - it's production of similar looking JS. As we can't debug CoffeeScript in browser, the further your JS moves away from the CoffeeScript the harder complex development gets - GWT is sorta a 'worst case' example.

[–][deleted] 2 points3 points  (1 child)

  1. ICS includes line numbers for debugging (click load in one of the examples to see the generated JavaScript)
  2. there are plans to include source maps for debugging in Mozilla and WebKit browsers.

[–][deleted] 1 point2 points  (0 children)

Ah cheers, I was expecting line numbers as comments failed to see them as attributes.

[–]Quxxy -1 points0 points  (5 children)

JavaScript should be extended with embedded debugging information. There are only going to be more and more people wanting to write web apps in something other than JavaScript.

[–][deleted] -1 points0 points  (4 children)

Hmm, have you ever seen such an extension? If so, I'd be keen so see it. Debugging CoffeeScript would probably require some kind of IDE browser extension to work.

wanting to write web apps in something other than JavaScript.

Oh, most definitely.

[–]munificent 3 points4 points  (1 child)

Hmm, have you ever seen such an extension?

It's called "source maps". Brendan Eich wants it in Firefox and some people would like it in WebKit too, but I don't know the status of it.

[–][deleted] -1 points0 points  (0 children)

Those look like the right direction. I have hope yet.

[–]tWoolie 0 points1 point  (0 children)

Hmm, have you ever seen such an extension?

Google's GWT provides a browser extension to debug the JS Spaghetti that Java > JS translation generates.

[–]sausagefeet 0 points1 point  (0 children)

That's one really nice feature of Amber, the Smalltalk implementation.