-
Notifications
You must be signed in to change notification settings - Fork 217
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
The debugger engine does not work with modern versions of GDB. #1392
Comments
I'm unable to reproduce this with Ubuntu 23.04:
|
My VS Code is set up to use MSYS2 as the shell instead of PowerShell--does the debugger require a certain shell to be used? |
On Windows we expect Powershell or Cmd because if you are in the MSYS2 shell, you may not have access to the %USERPROFILE%.vscode folder which contains the extension and its additional tooling needed for it. |
In that case, I think that it would be prudent to emit an error message specific to these circumstances, because there's a substantial body of users on places like StackOverflow who have unsuccessfully attempted to troubleshoot this issue, unaware of the fact that this configuration is not supported. |
Ok this didn't help to install the latest version of python2 (.7.18). |
It's been the case since about version 9.? of GDB that the MI debugger engine does not work with GDB. I believe that this is because the debugger engine is expecting the wrong output from GDB, but there are numerous posts about this on sites like StackOverflow, and the only solution people have found is to downgrade their version of GDB.
The error from this is:
I mentioned this previously here: microsoft/vscode-cpptools#7706 (comment)
I'm attaching the debugger output with
engineLogging
andtraceResponse
enabled, but ultimately I'd suggest simply trying to use the debugging engine with GDB withexternalConsole
set tofalse
and seeing for yourself. The debugger runs normally until the debugging engine gives up on it because of a perceived invalid output.Versions I'm using:
debugger_output.txt
The text was updated successfully, but these errors were encountered: