coffeescript icon indicating copy to clipboard operation
coffeescript copied to clipboard

Better debugging

Open codic12 opened this issue 5 years ago • 3 comments

Please provide better debugging, as transpiling to JS is confusing. I'll give an example. image

Basically, the error is thrown for the code transpiled to JS, as so:

Thrown:
filename:line
	code_transpiled_to_js

JS Exception goes here

I'd say it could look like

Thrown:
filename:line
	code_in_coffee
JS Exception goes here
Original error:
filename:line
	code_transpiled_to_js

Due to line numbering differences and sometimes very very different syntax, it's hard to figure out what a JS error means especially if you're used to seeing the coffeescript. And the line number surely points you in the wrong direction.

codic12 avatar Feb 13 '20 03:02 codic12

I can agree to this, it's super confusing while debugging my code, using Coffee with bigger libraries with no one else who uses coffee can be confusing, sure you'll eventually figure out that small error, but it's not worth it when you can find the error in JS much easier

I love CoffeeScript btw :P

Technisha avatar Feb 14 '20 04:02 Technisha

Yep! This is confusing!

Muffin-101 avatar Feb 15 '20 16:02 Muffin-101

I wish i could help! Just learning Coffee Script

Muffin-101 avatar Feb 15 '20 16:02 Muffin-101