You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment: Based on my using VSCode 1.76 on Linux w/Java (17) and VSCode Java debugging...
Request for VSCode Java debugging to support typical debugger capability of having a watch window, or memory dump-style view that shows a byte array's raw bytes hex values with characters, or at least just character representation similar to what most debuggers have. For example, WinDbg supports "db" to dump bytes, Visual Studio can do the same, even for managed.
This is not critical for me but just wanted to create a placeholder request for others to +1 in case it ever seems a worthy feature (and in case I missed that this already exists... forgive in advance if so!).
Workaround...
I found an ancient non-vscode Stack Overflow article/answer with an answer viable for use in the VSCode debugger, just wrap the array in String object to get the ASCII view...
// if code has this...
byte[] bytes = {0x41, 0x42, 0x43, 0x31, 0x32, 0x33};
// can do this in debugger console...
new String(bytes)
"ABC123"
Cumbersome but fine for my immediate needs. I do not currently work daily in Java.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Environment: Based on my using VSCode 1.76 on Linux w/Java (17) and VSCode Java debugging...
Request for VSCode Java debugging to support typical debugger capability of having a watch window, or memory dump-style view that shows a byte array's raw bytes hex values with characters, or at least just character representation similar to what most debuggers have. For example, WinDbg supports "db" to dump bytes, Visual Studio can do the same, even for managed.
This is not critical for me but just wanted to create a placeholder request for others to +1 in case it ever seems a worthy feature (and in case I missed that this already exists... forgive in advance if so!).
Workaround...
I found an ancient non-vscode Stack Overflow article/answer with an answer viable for use in the VSCode debugger, just wrap the array in String object to get the ASCII view...
Cumbersome but fine for my immediate needs. I do not currently work daily in Java.
Beta Was this translation helpful? Give feedback.
All reactions