Skip to content

Conversation

@makamys
Copy link
Contributor

@makamys makamys commented May 7, 2023

Fixes #2026 (comment). Well, mostly.

Prior to this commit, switching to a stack frame inside a not yet decompiled class would take you to the wrong line, and switching to the same stack frame would always take you to the same wrong line until you restart the debug session.

With this commit, the first time you switch, you will still be taken to the wrong line, but on subsequent switches you will be taken to the correct line. The same thing happens even without the plugin, so I assume this is just a limitation of IntelliJ that can't be helped.

@RedNesto
Copy link
Member

RedNesto commented May 8, 2023

Looks good 👍 Please fix the ktlint error and I'll merge it

@makamys makamys force-pushed the remap-bytecode-lines-lazily branch from 9b02a84 to 91ca0de Compare May 8, 2023 13:45
@makamys
Copy link
Contributor Author

makamys commented May 8, 2023

Whoops, fixed it.

@RedNesto RedNesto merged commit b02d7c4 into minecraft-dev:dev May 8, 2023
@makamys makamys deleted the remap-bytecode-lines-lazily branch May 8, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect line numbers when debugging decompiled class files that have mixins

2 participants