Skip to content

[lldb-dap] When running debugging with args in the integrated Terminal it goes to the wrong output #174445

@da-viper

Description

@da-viper

test program

#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)

{
    "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

this is a line

gotten result

--stdio
./input::
this is a line

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions