3 ms·
Would your opinion change if you could debug CS natively?
by politician 15y ago
Would your opinion change if you could debug CS natively?
- ghotli 15y agoHow would this even work? I'm curious.
- rayiner 15y agoThe 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.
- ricardobeat 15y agoProbably 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 :)