microsoft / microsoft/vscode-cpptools

Debugger cannot pass arguments to the internal console correctly

オープン
#4,239 コメント 5 件 リアクション 0 件 担当者 1 名 GitHub で見る

@pieandcakes がすでに取り組んでいます。

2019年9月24日 から。

debugger
主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

説明

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!!!

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。