Issue 174445
Summary [lldb-dap] When running debugging with args in the integrated Terminal it goes to the wrong output
Labels lldb-dap
Assignees da-viper
Reporter da-viper
    test program 
```cpp
#include <cstdio>

int main(int argc, char *argv[]) {
 puts("argv inputs");
  for (int i = 1; i < argc; i++) {
 puts(argv[i]);
  }
}
```


launch configuration (with args and stdin redirection)
```json
{
    "name": "launch program",
    "type": "lldb-dap",
    "request": "launch",
    "program": "${workspaceFolder}/build/test",
    "stdio": [
        "./input",
 null,
        null
    ],
    "console": "integratedTerminal",
 "cwd": "${workspaceFolder}",
    "args": [
        "this is a line",
    ],
},
```

expected result
```sh
this is a line
```

gotten result 
```sh
--stdio
./input::
this is a line
```

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to