microsoft / microsoft/vscode-cpptools

When using internal debug console, the number of arguments is larger than expected

Open
#13,162 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Environment
  • OS and Version: Windows 11
  • VS Code Version: 1.96.3
  • C/C++ Extension Version: 1.22.11
Bug Summary and Steps to Reproduce

Bug Summary:
In launch.json, if setting "externalConsole": false, then in the number of arguments is 3 larger than expected because there are some extra arguments, i.e., "2>CON 1>CON <CON". When using external console, the extra arguments will be gone.

Configuration and Logs
=thread-group-added,id="i1"
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
=cmd-param-changed,param="args",value="-d -m 2>CON 1>CON <CON"
Other Extensions

Mingw

Additional context

No response

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.

Research direction

Reproduce the issue with launch.json using "externalConsole": false on Windows 11 and inspect the debugger setup that produces the GDB args value shown in the report. Compare it with the external-console configuration and verify that the three console-redirection arguments are no longer counted as program arguments.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.