Search code examples
c++debuggingvisual-studio-code

Does VS Code have a memory viewer and/or a disassembler for C++ extension?


I am using Visual Studio Code (VS Code) for debugging my C++ program. I'd like to view the memory at a variable's address and also be able to view the assembly code of my program. I am looking around on VS Code and I am not seeing an option for such views. I checked around on the marketplace and I don't anything out there.

Not sure if I am not looking in the right place, but do these features exist for VS Code?


Solution

  • When this question was first asked, neither the disassembly view nor the memory viewer were available.

    In July of 2021, the disassembly view was released, which can be opened by clicking "Open Disassembly View" in the context menu of an editor. This is supported both by the generic C++ debugger debugger, and LLDB debugger has a "Toggle Disassembly" command which works quite well.

    In February of 2022, the memory view was released in VS Code, which can be accessed by hovering on a variable in the "Variables" view.