microsoft / microsoft/vscode-cpptools

Debugger cannot pass arguments to the internal console correctly

Open
#4,239 5 comments 0 reactions 1 assignee View on GitHub

@pieandcakes is already working on this.

Since Sep 24, 2019.

debugger
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Type: Debugger
VSCode Version: 1.36.1
C/C++: 0.25.1
OS Version: Windows 7

Hello everybody,

I am currently debugging an application with the following debug configuration:

{ "name": "Debug SIM -c -meas -b -s -1", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/tools/sim/sim.exe", "windows": { "args": [ "-c", "-d", "${file}", "-b", "-s", "-1" ] }, "stopAtEntry": true, "cwd": "${workspaceFolder}", "externalConsole": true, "MIMode": "gdb", "miDebuggerPath": "${workspaceFolder}/tools/mingw64/bin/gdb.exe", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ] },

Unfortunately, I can only debug using the external console ("externalConsole": true).

If I try to do the same in the internal console ("externalConsole": false), the debugger passes incorrectly three additional arguments at the end, that were not supposed to be passed. These are "2>CON", "1>CON" and "<CON".
So the array of the passed arguments looks in the following way:
passer

Of course, I could modify my application in the way it would ignore the arguments, but I am not sure, if these additional arguments at the end were a developer's intention and not a bug:)

Thank you in advance!!!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.