Fixed AS3 Debugging P-code inside nested functions

Fixed AS3 Debugging - show (and click through) proper call stack
This commit is contained in:
Jindra Petřík
2023-11-05 21:11:10 +01:00
parent 0f0e6d880d
commit 8b3b740b44
6 changed files with 51 additions and 16 deletions
@@ -772,6 +772,10 @@ public class DecompiledEditorPane extends DebuggableEditorPane implements CaretL
}
public void gotoMethod(int methodId) {
gotoMethod(methodId, null);
}
public void gotoMethod(int methodId, Runnable afterHandler) {
Highlighting tm = Highlighting.searchIndex(highlightedText.getMethodHighlights(), methodId);
if (tm != null) {
int pos = 0;
@@ -792,6 +796,9 @@ public class DecompiledEditorPane extends DebuggableEditorPane implements CaretL
if (fpos <= getDocument().getLength()) {
setCaretPosition(fpos);
}
if (afterHandler != null) {
afterHandler.run();
}
}
}, 100);
}