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
{{ message }}
Repository navigation
[Feature Request] Implement Assembly View/Disassembly View for Debugger #206
Being able to view assembly and step through assembly instructions would be useful. Especially when debug information isn't available for a certain library. Right now it just displays a message saying unknown source, when it goes into one of these functions. Being able to view values of registers in the GUI some way. Not entirely sure how that would work with VSCode, but being able to the registers all the time and able to modify them such other assembly debuggers.
@marktrz if you're on Linux, nemiver does it all and is quite a performer. I'm using it as an alternative to vs debugger on linux and so far it performs well. Now only if vscode could implement its features 🎐
Thanks for the feedback. You can view disassembly in vscode using the -exec disassembly command in the debug console. Registers can be viewed the same way (-exec info registers).
Reacted by Deqing Sun, AdamEr8, Kay, tati-frog and Suraj
I have code in C which calls code in ASM and it would be very useful to debug the ASM code within vs code without calling specific gdb commands which only show part of the source.
If I'm not mistaken, since it's been a couple of years since I used it, the sublime gdb plugin for sublime text 2 supported asm debugging, showing registers and everything (https://github.com/quarnster/SublimeGDB). Probably there is a way for it to be done on vs code
Reacted by Abhinav Gauniyal, kamael, dymo, yh-sb, daydreamman, xdante, Leonardo, gurpreetshanky, xhliu and Suraj
So, could you please add a disassembler viewer in dubug view. It will be so helpful for C/C++ developers.
It should not take long time to implement this.
Below placed examples how this view looks like:
Reacted by Gladilov, Gleb, xdante, ., Brook Heisler, Juan Gomez, Leonardo, Vitalii Lysenko, Oskar Weigl, KaiN, Scott Lawson and 52 more
I have just spent days looking for alternatives to VSCode because I would like to have assembler, memory and register windows. Reworking a large open source project based on VSCode/CMmake to a new tool is considerable effort. There are many people asking for a memory view for a long time. Please do consider adding such a window. Memory view can execute the GDB x command after each step / trace as it is so last decade to enter that command repeatedly (or up arrow enter). Ideally the window would also highlight values that have changed.
Reacted by Koutheir A., Jarret Shook, slimtom95, Travis Downs, Ahtі Lеgοnκov, gurpreetshanky, Silvio Clécio, Charlotte R, Troy Neubauer, qthree and 9 more
The first iteration of this feature is now available in VS Code Insiders. Give it a try and let us know what you think. microsoft/vscode#124163 (comment)
Reacted by Raffi Zulvian Muzhaffar and Luke Avedon
Note that you'll need the step granularity feature from MIEngine main which has not been released yet.
The stepping performance will need some improvement, esp. when registers are expanded.
As will the link between original source and disassembly. I usually pull the disassembly view to the right manually to see both and they both update but when you step into another source file you won't see the code anymore.
Eventually a mixed view like in VS and objdump is desirable.
Yeah indeed it works with the insider version. Even the performance is a bit better.
Oddly though vscode sends a disassemble request even before you open the disassembly view, quite wasteful.
One missing feature is syntax highlighting. There are wonderful extensions for this like ASM Code Lens but since this view is not a normal editor there's no chance of them ever working. (It's also a bit weird in general that you can't select the code.)
Btw Intel syntax can be set via ~/.gdbinit with set disassembly-flavor intel.
Hi, I downloaded insiders 1.6.0 , I'm on mac.
How can I enable or use this feature?
I really like the memory view in Visual Studio Community 2019.
I hoope this feature can reach VS code.
One missing feature is syntax highlighting. There are wonderful extensions for this like ASM Code Lens but since this view is not a normal editor there's no chance of them ever working. (It's also a bit weird in general that you can't select the code.)
Activity
agauniyal commentedon Sep 8, 2016
@marktrz if you're on Linux, nemiver does it all and is quite a performer. I'm using it as an alternative to vs debugger on linux and so far it performs well. Now only if vscode could implement its features 🎐
jacdavis commentedon Sep 8, 2016
Thanks for the feedback. You can view disassembly in vscode using the -exec disassembly command in the debug console. Registers can be viewed the same way (-exec info registers).
Izikiel commentedon Oct 12, 2016
I have code in C which calls code in ASM and it would be very useful to debug the ASM code within vs code without calling specific gdb commands which only show part of the source.
hth313 commentedon Mar 2, 2017
A register display would be very useful in situations like this, having it update as you step around.
Izikiel commentedon Mar 2, 2017
If I'm not mistaken, since it's been a couple of years since I used it, the sublime gdb plugin for sublime text 2 supported asm debugging, showing registers and everything (https://github.com/quarnster/SublimeGDB). Probably there is a way for it to be done on vs code
yh-sb commentedon May 24, 2017
So, could you please add a disassembler viewer in dubug view. It will be so helpful for C/C++ developers.
It should not take long time to implement this.
Below placed examples how this view looks like:
kgfly commentedon Jun 13, 2018
Please add
ASM window
Memory window
Register window
doingnz commentedon Aug 31, 2018
I have just spent days looking for alternatives to VSCode because I would like to have assembler, memory and register windows. Reworking a large open source project based on VSCode/CMmake to a new tool is considerable effort. There are many people asking for a memory view for a long time. Please do consider adding such a window. Memory view can execute the GDB x command after each step / trace as it is so last decade to enter that command repeatedly (or up arrow enter). Ideally the window would also highlight values that have changed.
sean-mcmanus commentedon Aug 31, 2018
Richard (@doingnz) You could try using Visual Studio 2017 -- they have some remote to Linux ability: https://blogs.msdn.microsoft.com/vcblog/2016/03/30/visual-c-for-linux-development/ .
ci70 commentedon Nov 24, 2018
Please add
ASM window
Memory window
Register window
tehKaiN commentedon Nov 24, 2018
This is probably related to #941
ci70 commentedon Dec 9, 2018
Has this been implemented yet???
nicolo-ribaudo commentedon Dec 9, 2018
No, but I think that they would happily accept a PR.
44 remaining items
bobbrow commentedon Jul 27, 2021
The first iteration of this feature is now available in VS Code Insiders. Give it a try and let us know what you think.
microsoft/vscode#124163 (comment)
Trass3r commentedon Jul 27, 2021
👍🏽
Note that you'll need the step granularity feature from MIEngine
mainwhich has not been released yet.The stepping performance will need some improvement, esp. when registers are expanded.
As will the link between original source and disassembly. I usually pull the disassembly view to the right manually to see both and they both update but when you step into another source file you won't see the code anymore.
Eventually a mixed view like in VS and objdump is desirable.
Colengms commentedon Aug 12, 2021
This should be addressed in 1.6.0-insiders.
Trass3r commentedon Aug 19, 2021
Yeah indeed it works with the insider version. Even the performance is a bit better.
Oddly though vscode sends a
disassemblerequest even before you open the disassembly view, quite wasteful.One missing feature is syntax highlighting. There are wonderful extensions for this like ASM Code Lens but since this view is not a normal editor there's no chance of them ever working. (It's also a bit weird in general that you can't select the code.)
Btw Intel syntax can be set via ~/.gdbinit with
set disassembly-flavor intel.ShlomiRex commentedon Aug 30, 2021
Hi, I downloaded insiders 1.6.0 , I'm on mac.
How can I enable or use this feature?
I really like the memory view in Visual Studio Community 2019.
I hoope this feature can reach VS code.
Trass3r commentedon Aug 30, 2021
It's in the editor context menu during debugging.
Trass3r commentedon Oct 15, 2021
microsoft/vscode#131210
microsoft/vscode#129762
How-invin commentedon Dec 21, 2021
it seems that disassembly doesn't work on the gdb which is customized like for mips.
.MatAtBread commentedon Jan 15, 2022
Also no disassembly on esp32-C3 under esf-idf. Memory, code and registers are all visible within gdbgui. I'm running insiders 1.6.4.
Is there something I need to enable or select to see these viewers (no context menu item, unless I'm being really dumb)