microsoft / microsoft/vscode-cpptools
command:pickProcess does not work with remote debug.
@WardenGnaw is already working on this.
Since May 26, 2020.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Type: Debugger
Describe the bug
- OS and Version: Windows 10 19041
- VS Code Version: 1.45.1
- C/C++ Extension Version: 0.28.1
- Other extensions you installed (and if the issue persists after disabling them):
- A clear and concise description of what the bug is.
command:pickProcess use ps axww -o pid=,comm=${PsProcessParser.commColumnTitle},args= to list running process. https://github.com/microsoft/vscode-cpptools/blob/dfca58c539aa399e145b6ad7ca3db546bcb077b9/Extension/src/Debugger/nativeAttach.ts#L117
It may lead
your 131072x1 screen size is bogus, expect trouble error in remote wsl/ssh.
Similar issue: https://github.com/microsoft/vscode/issues/75932
Furthermore, if you have process with a long long command line, the ps output will lead to stdout maxBuffer exceeded error!
use ps axw -o pid=,comm=${PsProcessParser.commColumnTitle},args= 2>/dev/null will fix it.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.