Skip to content

Open Disassembly View action is unreachable with the frontend-split debugger UI (2026.2) #1636

Closed

Description

@mellonis

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.

Activity

  1. angelozerr commented on Aug 17, 2026

    @angelozerr
    Contributor

    Is there any chance to have a contribution?

  2. self-assigned this
    on Aug 18, 2026
  3. added
    bug
    on Aug 18, 2026
  4. added this to the 0.21.0 milestone on Aug 18, 2026
  5. moved this to In Progress in Java Toolingon Aug 18, 2026
  6. moved this from In Progress to Done in Java Toolingon Aug 18, 2026
  7. angelozerr commented on Aug 18, 2026

    @angelozerr
    Contributor
  8. added a commit that references this issue on Aug 18, 2026
    e8e5c2d
  9. mellonis commented on Aug 21, 2026

    @mellonis
    Author

    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:

    { "address": "0x0", "instruction": "0000: 0D            ent" }

    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.

  10. angelozerr commented on Aug 21, 2026

    @angelozerr
    Contributor

    Thanks for the quick turnaround.

    You are welcome.

    Two smaller things I noticed while verifying, either of which may be worth its own issue:

    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.

  11. mellonis commented on Aug 23, 2026

    @mellonis
    Author

    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.

    Thanks for turning this around so quickly.

  12. added a commit that references this issue on Aug 23, 2026
  13. angelozerr commented on Aug 23, 2026

    @angelozerr
    Contributor

    Thanks for your feedback! And if you likr lsp4ij please add a review in JetBrains Marketplace to help us to promote it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions