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

I am using Visual Studio code (VS code) to debug my C ++ program. I would like to view the memory at a variable address, as well as view the build code of my program. I am looking at VS Code and I do not see the possibility for such views. I checked in the market and I do nothing.

Not sure if I'm not looking in the right place, but are there any features for VS Code?

Thanks!

+14
source share
2 answers

I delved into this feature for several days. Unfortunately, it looks like it is currently unavailable.

In addition to not having a memory viewer, it seems that VS Code "debugger console" is just a wrapper for GDB and also doesn't allow memory checking commands.

Now there is a function request to view the memory and the disassembly function. I suggest you vote if you are as interested in them as I am.

+8
source

Currently (February 2018), it seems that this function has not yet been included in VSCode. However, you can use the -exec command in the VSCode debug console to run GDB commands. See https://code.visualstudio.com/docs/languages/cpp#_gdb-lldb-and-mi-commands-gdblldb

The GDB check command "x" displays memory in various formats. So in the VSCode debug console

-exec x/64b 0x74ae70

will display 64 bytes in hexadecimal format from 0x74ae70. See https://sourceware.org/gdb/onlinedocs/gdb/Memory.html for more details.

+6
source

All Articles