Debugger cannot pass arguments to the internal console correctly

Đang mở
#4,239 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

@pieandcakes đang làm issue này rồi.

Từ ngày 24/9/2019.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

debugger

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

Ngôn ngữ chính
TypeScript
Star
6.2k
Fork
1.7k
Merge trung bình
14 giờ 46 phút
Pull request đã merge (30 ngày)
61

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/vscode-cpptools

Tất cả issue của microsoft/vscode-cpptools

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.