Skip to content

Problem with disassembly view #270593

@DrSergei

Description

@DrSergei

Does this issue occur when all extensions are disabled?: No

  • VS Code Version: 1.104.3
  • OS Version: Windows (WSL)

Steps to Reproduce:

  1. Reload VSCode window.
  2. Install lldb-dap extension and install latest binaries from LLVM release.
  3. Create test C++-program and compile it with debug symbols (g++ -g main.cpp -o main.exe).
#include <iostream>

int main() {
    std::cout << "Hello, world!" << std::endl;
    std::cout << "Hello, world!" << std::endl;
    std::cout << "Hello, world!" << std::endl;
    std::cout << "Hello, world!" << std::endl;
    std::cout << "Hello, world!" << std::endl;
    std::cout << "Hello, world!" << std::endl;
    std::cout << "Hello, world!" << std::endl;
    std::cout << "Hello, world!" << std::endl;
    std::cout << "Hello, world!" << std::endl;
    std::cout << "Hello, world!" << std::endl;
    return 0;
}
  1. Create launch configuration.
       {
            "type": "lldb-dap",
            "request": "launch",
            "name": "Launch (lldb-dap)",
            "program": "${workspaceFolder}/main.exe",
            "args": [],
            "cwd": "${workspaceRoot}",
        },
  1. Set breakpoint on first line of main function and start debugging.
  2. Right click on line and select "Open disassembly view".
  3. Stop debugging.
  4. Start debugging again. You can see error message about incorrect request.
  5. Try scroll dissambly view (not working).

Image

Debug adapter log:

1760027123.970161676 (stdio) --> {"command":"disassemble","arguments":{"memoryReference":"","offset":0,"instructionOffset":-50,"instructionCount":50,"resolveSymbols":true},"type":"request","seq":8}
1760027123.970287323 (stdio) queued (command=disassemble seq=8)
1760027123.970568419 (stdio) <-- {"body":{"error":{"format":"invalid arguments for request 'disassemble': malformed memory reference at arguments.memoryReference\n{\n  \"instructionCount\": 50,\n  \"instructionOffset\": -50,\n  \"memoryReference\": /* error: malformed memory reference */ \"\",\n  \"offset\": 0,\n  \"resolveSymbols\": true\n}","id":3,"showUser":true}},"command":"disassemble","request_seq":8,"seq":0,"success":false,"type":"response"}

Origianl PR.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions