Vscode-cpptools: Question: How to display memory during a debug session

Created on 30 Jan 2018  路  14Comments  路  Source: microsoft/vscode-cpptools

I am trying to figure out how to display a region of memory within Visual Studio Code with the CPP-Tools during a debug session. I can't seem to figure it out. One way to getting some data is using the following:

(uint8_t*)(address)

This will display the data as ASCII Hex based upon what I can see. I ideally, I would like to view the data as hex (perhaps decimal). I asked this question in the Gitter Microsoft/vscode forum, but no insight so far. This is the best I can do for now:

image

Also, I would like to be able to view the data as hex or decimal, is that possible?

Regards.

debugger question

Most helpful comment

@WardenGnaw, hopefully this feature might be added one day. It's a very useful debugging tool.

All 14 comments

VsCode does not have a memory window to use. However, you can execute GDB commands by typing-exec in the Debug Console.

So you can visualize the memory with -exec x <address>.

More information on the examine command can be found here

Mr. @WardenGnaw, thanks! I knew about the "x addr" command, but when I tried to exercise that command it would fail. I didn't know about the preamble "-exec". I will need to find the documentation that talks about that command and hopefully others that I don't know about.

Sadly, I don't think we have any documentation on it. All we have is an output in the Debug Console that says Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger).

@WardenGnaw, hopefully this feature might be added one day. It's a very useful debugging tool.

Very nice-to-have feature. Also want to see it someday in VSCode

Me too.

+1

+1

I's not implemented in VS code, but would be nice to have. VS has memory windows. I came up with same question recently and found following: meanwhile you can run GDB command "x" in the debug console: -exec x .... Command "x" reference, for example, here: https://sourceware.org/gdb/current/onlinedocs/gdb/Memory.html

+1

Want to see such window for python debugger.

Same needs within GO

I am looking for something similar as well :(

+1

Was this page helpful?
0 / 5 - 0 ratings