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
Hello,
It seems that the extension does not work when Visual Studio Code is launched with Flatpak. Indeed, when a debug is launched, in the Visual Studio code debug console page, GDB returns the following error: `ERROR: Unable to start debugging. GDB exited unexpectedly.
I'd like to point out that before Visual Studio Code was switched to Flatpak, it worked correctly.
In order to launch a correct bash session, some configurations had to be modified, so I'm attaching our user.json configuration:
I think the extension is trying to run the gdb program in a way that doesn't give it access to files or environment variables.
Without the bash configuration set in the user parameters, the bash we have has no environment variables and is buggy. This may be due to the fact that, as the application is launched with Flatpak, the command flatpak-spawn --host should be used to give GDB access to the data required for it to function correctly.
If we set the line terminal.integrated.defaultProfile.linux to bash, and we set the path of the bath profile to /usr/bin/bath, the debugger is working correctly, but not the shell anymore.
I don't know if it was clear, but I'm trying to explain something I don't really understand.
Hello,
It seems that the extension does not work when Visual Studio Code is launched with Flatpak. Indeed, when a debug is launched, in the Visual Studio code
debug console
page, GDB returns the following error: `ERROR: Unable to start debugging. GDB exited unexpectedly.I'd like to point out that before Visual Studio Code was switched to Flatpak, it worked correctly.
In order to launch a correct bash session, some configurations had to be modified, so I'm attaching our
user.json
configuration:I think the extension is trying to run the
gdb
program in a way that doesn't give it access to files or environment variables.Without the bash configuration set in the user parameters, the bash we have has no environment variables and is buggy. This may be due to the fact that, as the application is launched with Flatpak, the command
flatpak-spawn --host
should be used to give GDB access to the data required for it to function correctly.If we set the line
terminal.integrated.defaultProfile.linux
tobash
, and we set thepath
of thebath
profile to/usr/bin/bath
, the debugger is working correctly, but not the shell anymore.I don't know if it was clear, but I'm trying to explain something I don't really understand.
This issue is related to this one I think: microsoft/vscode#140261
The text was updated successfully, but these errors were encountered: