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
So far, so good: it runs, and works properly.
The issue is about the stdio (and maybe stderr) of the debugged program:
In VS code I am unable to see it!
Instead, if I run the same commands directly in gdb, I have the "Hello world" print (and that's why I am using this way of running gdb server: to have the prints the remote target does).
For example, this is part of the gdb output when run in a shell by hand:
Reading /usr/lib/debug//lib/arm-linux-gnueabihf/629ed8ae35275b1ac80b20cfedd7ad00109548.debug from remote target...
Reading /usr/lib/debug/lib/arm-linux-gnueabihf//629ed8ae35275b1ac80b20cfedd7ad00109548.debug from remote target...
Reading target:/usr/lib/debug/lib/arm-linux-gnueabihf//629ed8ae35275b1ac80b20cfedd7ad00109548.debug from remote target...
Hello world!
[Inferior 1 (process 467) exited normally]
(gdb)
Conversely, in VS code, I have the various "Reading..." messages in the Debug Console, but no "Hello world!" (nor in vs code terminal).
Is there a way to get the missing output?
Or could this be a bug of vscode-cpptools extension?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am not sure if this is an issue of this extension, or a misconfiguration of my setup, anyway...
I am debugging from Linux x64 to Linux Arm, with remote gdb.
My launch config is the following:
So far, so good: it runs, and works properly.
The issue is about the stdio (and maybe stderr) of the debugged program:
For example, this is part of the gdb output when run in a shell by hand:
Conversely, in VS code, I have the various "Reading..." messages in the Debug Console, but no "Hello world!" (nor in vs code terminal).
Is there a way to get the missing output?
Or could this be a bug of vscode-cpptools extension?
Thank you for any help.
Regards.
Beta Was this translation helpful? Give feedback.
All reactions