Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: