I'm trying to get the disassembly view working on a VSCode debug adapter, but it's not working. It's setting cap.supportsDisassembleRequest = true
at initialization, and the stack frames it's returning have instructionPointerReference
set.
The "Open Disassembly View" context menu doesn't show up in the editor or when right-clicking the stack frame.
I'm trying to get the disassembly view working on a VSCode debug adapter, but it's not working. It's setting cap.supportsDisassembleRequest = true
at initialization, and the stack frames it's returning have instructionPointerReference
set.
The "Open Disassembly View" context menu doesn't show up in the editor or when right-clicking the stack frame.
- What extension? Dissassembling what? What language/technology/toolchain you are using? – Sergey A Kryukov Commented Mar 3 at 20:25
1 Answer
Reset to default 0It turns out that only supportsDisassembleRequest
matters for making the menu item appear. The problem was a bug in Microsoft's Java Debug Server.
The JSON for the initialize response was double-nesting the body:
{
"success": true,
"request_seq": 1,
"command": "initialize",
"body": {
"body": {
"supportsReadMemoryRequest": true,
...
Instead of setting the response body to an InitializeResponseBody
, I had to set it directly to the Capabilities
object to avoid the nesting.