code-debug
code-debug copied to clipboard
Lines of program output which include an at "@" symbol are hidden
GDB version 8.2
Source:
#include <iostream>
int main() {
std::cout << "This line will be @ Hidden" << std::endl;
}
Debug configuration:
{
"version": "0.2.0",
"configurations": [
{
"type": "gdb",
"request": "launch",
"name": "gdb_error",
"target": "./gdb_error",
"cwd": "/home/me/gdb_error/",
},
]
}
Problem: the stdout printed by the above program does not appear in the debug console. All other lines are printed. Removing the @ character from the output causes it to show up again.
If adding "showDevDebugOutput": true, to the configuration, I see:
GDB -> App: {"outOfBandRecord":[]}
There is no problem with command line GDB.
Same thing with ~ and & by the way. It seems to interpret any line with those as "outOfBandRecord"s.
Search keywords: log tilde at symbol ampersand