Open schwaerz opened 1 year ago
I had a second so I tried to replicate this under Windows 11. Works fine for me, tried moving the window and stepping around, moving again, closing and re-opening. All works as expected.
We do not manage ANY of the editor windows in VSCode -- not your source code or the disassembly view. It is done by VSCode proper. Please submit an issue with the vscode main repo.
The disassembly failure is specific to YOUR executable and symbol table. I cannot debug it without some help from you.
I have to close this issue if there is nothing further I can do. You can also set "showDevDebugOutput": "vscode"
to see VSCode request/response sequences. It is possible that VSCode is asking for addresses that are invalid or we are doing something wrong. Disassembly is not perfect by any means and is a guessing game if you start with random addresses. It is more reliable when you start with known addresses (like start of functions, etc.)
Describe the bug We are running an external GDB server form a task. When opening the disassembly window, everything works just fine. We can single-step, step over, etc. Just like what you would expect.
When running on Linux everything works fine.
However, on Windows (11), when I try to create a split view (source code and disassebly) in VSCode, it fails if I move the disassebly window to the left or the right.
The window will look as as follows:
There is an error message popping up, too:
However, I can get it working if I keep the disassembly Window where it is, but instead move the source code Window to either the left or the right. Reproducible on a different PC with different User (running Windows 10), too.
Expected of course would be that it does not matter where I move the disassebly Window.
[comment]:
Please include
launch.json
Please note that we are reading some of the values from the
settings.json
(see below. Please let me known whether / which additional values you need. I cannot provide the whole file as of security reasons.settings.json (extract):
Attach text from
Debug Console
The following I captured from the debug console after
I used
"showDevDebugOutput": "none"
After that I changed it to
"showDevDebugOutput": "raw"
. No more lines added in the output after dragging the window. Also after changing it back to "none" did not produce that output again?!As this error is purely related to where you drag the window in VS Code I strongly believe it is related to either the VSCode disassembly window implementation, or cortex-debug. I did not find anything about this issue wrt to the VSCode disassembly view. Therefore my first shot is the cortex-debug plugin.