microsoft / microsoft/vscode-cpptools
command:pickProcess does not work with remote debug.
@WardenGnaw arbeitet bereits daran.
Seit 26.5.2020.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
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.

Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.