-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format variables output when debugging #319
Comments
Are you debugging with the windows debugger, gdb, or lldb? If it is the windows debugger, you can use a format specifier to change the format. For example, to see the value in binary, use "value,b" in the watch window. For lldb and gdb, this is currently only supported in the debug console with -exec. |
@jacdavis I'm using gdb. Could you please add this as a suggestion for future enhancement? |
It turns out, gdb has a few format specifiers of its own. They are 'h', (or 'x') for hex and 'o' for octal. |
Got you. |
Any update on this? Can you guys move it to the higher priority list? |
I filed a suggestion with vscode but was told that it was something that was related to the extension. This issue seems to cover my request, but I enclose my original text: I'd like to be able to select in which format I see the values of local and watched variables in the debugger. It would be preferred to have a generic setting but be able to change it per variable. The way that it is now I often need to use a exteral dec-to-hex converter and copy the values from VS Code. Being able to see them in hex directly in the debugger would be a great help! I mostly debug C/C++ programs but I imagine that this is generic for all languages. VSCode Version: 1.12.2 Steps to Reproduce: |
Is there any timeline for this feature implementation in GUI local var display? |
"watch" variables binary representation would be very useful |
Query debugger for target architecture instead of relying on launch o…
It would be nice to be able to choose the format of the variables when in debug.
Right now the output seems to be fixed as decimal. Sometimes is convenient to see the value in hexa or binary.
(this is applicable for both the variables list output and for the "mouse over" display)
The text was updated successfully, but these errors were encountered: