-
Notifications
You must be signed in to change notification settings - Fork 42
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
Support "true" GDB console #30
Comments
+1 :). In vscode we have the debug console working but it's the old style console that we had in Eclipse with the input line. Having a full pty like console would be awesome. |
Did this commit resolve issue? |
why no use DEBUG CONSOLE user input edit send gdb commands? |
Coincidentally I am going through all the old bugs to see what is relevant, this one certainly still is. I am curious as to the current state of this. Not sure where this work was left off a few years ago. This is a very desirable feature.
A full GDB console using new-ui cli where possible would give best user experience as you get 100% features of GDB at command line. As a fallback on GDB/OS where that doesn't work, using the Debug Console to do -interpreter-exec makes sense too, but the Debug console in VS Code has functionality that is somewhere between the two, e.g. it understands structured data. |
Reading through the comments on #47, especially #47 (comment) it seems like this may already be complete. I haven't really used it, so we should make sure it still works and is documented and then close this off. |
I've just tried to use the debug console to enter GDB commands, is this expected to work (like it is with all other GDB frontends I've seen)?
|
No - it isn't. What it is supposed to do is this: And there is an enhancement request for auto complete of those variables here eclipse-cdt-cloud/cdt-gdb-vscode#75 What this issue covers is using new-ui to have a CLI in the terminal view. Ericsson folks have done it IIUC, but I have never tried it out. (But I am about to right now!) |
Setting |
ok, so we'd ideally have:
|
yes, it is unix-only, but since that code was written the work has been done on GDB side to support new-ui on Windows hosts.
Yes, see #161 |
Can you please link to an issue to test + handle that in cdt-gdb-adapter, too? |
|
Some improvements were made to CDT and GDB to allow having a proper GDB console in CDT. We need to have a way to do this with the adapter too.
IIRC, CDT creates a PTY, spawns GDB in CLI mode using this PTY for its stdin/stdout/stderr. But it also creates a second PTY for MI. When spawning GDB, is passes
-ex "new-ui mi /dev/pts/<id>"
and uses this as the MI channel.The text was updated successfully, but these errors were encountered: