microsoft / microsoft/vscode-cpptools

Debugger cannot pass arguments to the internal console correctly

Ouverte
#4,239 5 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@pieandcakes y travaille déjà.

Depuis le 24/9/2019.

debugger
Langage dominant
TypeScript
Étoiles
6.2k
Forks
1.7k
Merge moyen
14 h 46 min
PR mergées (30 j)
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!!!

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.