debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[Pause] Locations should be symmetric  for original and generated files

Open jasonLaster opened this issue 9 years ago • 3 comments

One of the coolest features we've worked on IMO, is debugger symmettry. Basically, we expect users to mostly care about debugging the original code, but we'll try to help users when they want to see the generated code.

One of the biggest use cases for trying to see the generated code is when you want to inspect variables in the generated code.

We currently map breakpoint locations, so you can see where the breakpoint is. We do not map the debug line and call stack locations, but we totally could and should

here's a patch

jasonLaster avatar Nov 16 '17 21:11 jasonLaster

/claim

assafdd avatar Nov 17 '17 12:11 assafdd

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Nov 17 '17 12:11 claim

It is worth to notice that "symmetric" might not be a right word here. Single original location might be mapped to multiple generated locations (see e.g. allGeneratedPositionsFor ), but probably to simplicity of this issue the first generated location (or one returned by generatedPositionFor) must be selected for symmetry.

yurydelendik avatar Nov 21 '17 16:11 yurydelendik