code-debug icon indicating copy to clipboard operation
code-debug copied to clipboard

Lines of program output which include an at "@" symbol are hidden

Open pngunit opened this issue 4 years ago • 1 comments

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.

pngunit avatar Jan 08 '21 12:01 pngunit

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

mvirkkunen avatar May 03 '24 13:05 mvirkkunen