-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Linux] Cannot launch gdb debugging session (with externalConsole set to true) #2998
Comments
Setting The resulting
Also, the solution @microsoft/vscode#6107 (comment) does not work. |
I've installed Xterm on Arch Linux and now everything works fine (it's not there by default as in Ubuntu distros, for example). On Ubuntu with the latest insider's build the terminal fires up and everything works fine, on Arch, however, it does not, unless Xterm is installed and then upon launching debugging with |
It turns out (according to this comment: microsoft/MIEngine#752 (comment)) Xterm was set as a default terminal in VSCode settings, I've changed it to gnome-terminal and everything works fine now. I guess, it would be good to mention that somewhere in documentation as not everyone has Xterm installed. |
@UniverseIsProprietary2 We use the VS Code Debug Protocol's You can change the setting in VS Code's |
Pinning this so others running into it will know how to get around it. |
FWIW for me anyway, the default started off life as I hope this can be documented better somewhere beyong pinning a rando thread on github, because it is nonobvious. That linked comment nonchalantly offered "This will allow you to specify the terminal client through the VS Code settings" under the gross assumption anyone would have the faintest idea how to go about doing that. |
@therealkenc I've pinned it in the hopes that as the title suggests, people who run into this will look at the pinned issue and be able to quickly figure out if they are running into the same issue. There's this article from 2016 but I can't find an official document from the VS Code team about the setting. TBH I didn't know about the setting either until we started talking about this issue and I glanced over another issue that had a comment about it. |
All these proposals are not working on my Arch machine. If have set the external terminal to I always get the same error: Strange to have a IDE which is not able to debug out of the box.. My version of VS Code:
Version of C/C++ tools:
Am I doing something wrong? |
@pieandcakes Can we unpin this now? |
Dunno what merits an issue worthy of being pinned (I have no horse in race), but until Microsoft/vscode#67296 is addressed folks are going to keep seeing the vscode-cpptools debugger silently failing to launch on folks' various quirky rigs like Arch or Gentoo or WSL or whatever. These are all possible to get right, natch; but they are also fairly easy to get wrong. Maybe absent being pinned the (currently) silent-fail-by-design behavior could be documented somewhere if it isn't already. And now that the Remote - SSH plugin dropped, there is a good chance folks are going to see it more often. |
@sean-mcmanus I agree with what @therealkenc says. VSCode still needs to generate an error so we don't hang/fail silently. |
what's up with that? still doesn't work for me |
Me too |
launch.json
configuration:Basic hello world code:
Compiled with:
Upon launching the debugging, the debugger simply hangs and does nothing:
Launching OpenDebugAD7 from extension's directory outputs:
Which indicates, that it's waiting for the connection, but does not receives the latter.
The text was updated successfully, but these errors were encountered: