joelday / papyrus-lang

📜Advanced language tools for the Papyrus scripting language.
Other
105 stars 17 forks source link

When breaking on a breakpoint decompiled source is shown when original source is available #180

Open bigbellyburger opened 1 year ago

bigbellyburger commented 1 year ago

Is your feature request related to a problem? Please describe. When placing breakpoints the decompiled code is opened when the breakpoint is hit. It is nice that decompilation is available, but decompiled source files lack the comments, things are ordered differently, and because of that the line numbers usually don't match.

This makes stepping through the code and visualizing which breakpoint is hit difficult.

Describe the solution you'd like It would be nice if the source file is opened when available instead of the decompiled source.

Describe alternatives you've considered I usually open the original source file alongside the decompiled one in a split pane. This works, but is not very pleasant.

Additional context image

joelday commented 11 months ago

@bigbellyburger We're doing a bunch of work right now that involves rewriting/revamping source file/compiled script mappings, which should address these kinds of issues. In the meantime, double-check your launch.json file to be sure it's pointing to the correct .ppj file.