You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Open Disassembly View action is unreachable with the frontend-split debugger UI (2026.2) #1636
Environment: LSP4IJ 0.20.1, WebStorm 2026.2 (WS-262.9437.145), macOS (Apple Silicon). DAP server: a custom stdio adapter registered through the debugAdapterServer extension point; its initialize response advertises supportsDisassembleRequest: true, and the session otherwise works end to end (launch, breakpoints, stepping, variables).
Observed: while paused in the DAP session, the Open Disassembly View action is not reachable anywhere:
it is absent from the stack-frame context menu (right-click on a frame row in Threads & Variables),
it is absent from the Debug tool window's "more" (⋮) menu, which does show the classic debugging actions (Force Step Over, Smart Step Into, Run to Cursor, …).
So there appears to be no discoverable entry point for the disassembly feature at all on this IDE generation.
Analysis (from reading 0.20.1): OpenDisassemblyAction is registered into DebuggingActionsGroup and XDebugger.Frames.Tree.Popup, and its update() calls setEnabledAndVisible(...) based on XDebugSession.DATA_KEY being present in the DataContext plus the process being a DAPDebugProcess with canDisassemble(). In 2026.2 the debugger tool window runs on the frontend-split implementation (com.intellij.platform.debugger.impl.frontend.* classes are on the stacks): the frames list no longer surfaces the classic XDebugger.Frames.Tree.Popup additions, and the contexts that do include the action's group don't seem to carry the backend XDebugSession, so the action hides itself everywhere.
Expected: some reachable way to open the disassembly view on 2026.x — e.g. resolving the session via XDebuggerManager#getCurrentSession as a fallback when the DataContext has none, and/or registering the action into the groups the frontend debugger UI actually renders.
Happy to test a snapshot build against our adapter.
Confirmed working on nightly 0.20.2-20260819-233647 (RustRover 2026.2.1).
Open Disassembly View now appears in the stack frame's context menu in the Frames panel. The view opens, shows a populated listing, highlights the current instruction at the right address (0xc, matching the IP register in the same stopped session), and stepping moves the highlight correctly. So the XDebuggerManager#getCurrentSession() fallback alone is enough — the existing action-group registration does reach the frontend-split UI once the session resolves. Thanks for the quick turnaround.
Two smaller things I noticed while verifying, either of which may be worth its own issue:
The view was empty when it first opened. I opened it on an already-stopped session and it showed nothing; it populated after I stepped once. I did not check whether it would have populated on its own given a moment, so I can't say whether the trigger is the step specifically or just elapsed time — but if the view only requests disassemble on the next stopped event rather than on open, opening it mid-session would always start blank.
Every row is prefixed <address>: null. My adapter sends only the two required fields of DisassembledInstruction:
symbol is optional in the spec and I omit it, so the null looks like the absent field being rendered rather than skipped. The same responses in VS Code's Disassembly view show no such prefix — identical addresses and identical instruction text, nothing between them.
Tested the CI build of #1645 (0.20.2-SNAPSHOT) in RustRover 2026.2. Both issues are fixed — and on the second one I owe you a correction.
1. The view opening empty — fixed. It now populates immediately when opened on an already-stopped session, no step needed. The OpenDisassemblyAction change does exactly what was missing.
2. The null prefix — fixed, but I sent you after the wrong field.
I reported it as the absent optional symbol being rendered instead of skipped. That was wrong: getSymbol does not appear anywhere in the disassembly package. It was instructionBytes, in the String.format your PR replaces — String.format("%s", null) yields the literal "null", so an adapter that omits that optional field gets it printed. Your null guard is the right fix and it lands exactly where the problem was; I just pointed you at the wrong name on the way there.
For what it is worth, my own adapter no longer triggers it either: it used to pack the address and hex bytes into instruction and send no instructionBytes at all, and I have since split them into the field the protocol provides. So either change alone clears it on my side — but the guard is what protects any other adapter that legitimately omits the field.
Activity
angelozerr commentedon Aug 17, 2026
Is there any chance to have a contribution?
angelozerr commentedon Aug 18, 2026
Please install https://github.com/redhat-developer/lsp4ij#testing-nightly-builds and tell me if it is works better
fix: Open Disassembly View action is unreachable with the frontend-split
mellonis commentedon Aug 21, 2026
Confirmed working on nightly
0.20.2-20260819-233647(RustRover 2026.2.1).Open Disassembly View now appears in the stack frame's context menu in the Frames panel. The view opens, shows a populated listing, highlights the current instruction at the right address (
0xc, matching theIPregister in the same stopped session), and stepping moves the highlight correctly. So theXDebuggerManager#getCurrentSession()fallback alone is enough — the existing action-group registration does reach the frontend-split UI once the session resolves. Thanks for the quick turnaround.Two smaller things I noticed while verifying, either of which may be worth its own issue:
The view was empty when it first opened. I opened it on an already-stopped session and it showed nothing; it populated after I stepped once. I did not check whether it would have populated on its own given a moment, so I can't say whether the trigger is the step specifically or just elapsed time — but if the view only requests
disassembleon the nextstoppedevent rather than on open, opening it mid-session would always start blank.Every row is prefixed
<address>: null. My adapter sends only the two required fields ofDisassembledInstruction:{ "address": "0x0", "instruction": "0000: 0D ent" }symbolis optional in the spec and I omit it, so thenulllooks like the absent field being rendered rather than skipped. The same responses in VS Code's Disassembly view show no such prefix — identical addresses and identical instruction text, nothing between them.fix: Improve Disassembly View
fix: Improve Disassembly View
angelozerr commentedon Aug 21, 2026
You are welcome.
I have created a PR #1645
Could you please test it by following instruction at https://github.com/redhat-developer/lsp4ij#testing-the-ci-builds and tell me if it fixes your 2 issues.
mellonis commentedon Aug 23, 2026
Tested the CI build of #1645 (
0.20.2-SNAPSHOT) in RustRover 2026.2. Both issues are fixed — and on the second one I owe you a correction.1. The view opening empty — fixed. It now populates immediately when opened on an already-stopped session, no step needed. The
OpenDisassemblyActionchange does exactly what was missing.2. The
nullprefix — fixed, but I sent you after the wrong field.I reported it as the absent optional
symbolbeing rendered instead of skipped. That was wrong:getSymboldoes not appear anywhere in the disassembly package. It wasinstructionBytes, in theString.formatyour PR replaces —String.format("%s", null)yields the literal"null", so an adapter that omits that optional field gets it printed. Your null guard is the right fix and it lands exactly where the problem was; I just pointed you at the wrong name on the way there.For what it is worth, my own adapter no longer triggers it either: it used to pack the address and hex bytes into
instructionand send noinstructionBytesat all, and I have since split them into the field the protocol provides. So either change alone clears it on my side — but the guard is what protects any other adapter that legitimately omits the field.Thanks for turning this around so quickly.
fix: Improve Disassembly View
angelozerr commentedon Aug 23, 2026
Thanks for your feedback! And if you likr lsp4ij please add a review in JetBrains Marketplace to help us to promote it. Thanks!
ci: the nightly tests every supported IntelliJ release that ci.yml do…
ci: the nightly tests every supported IntelliJ release that ci.yml do…