microsoft / microsoft/vscode-cpptools

command:pickProcess does not work with remote debug.

Offen
#5,566 1 Kommentar 2 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@WardenGnaw arbeitet bereits daran.

Seit 26.5.2020.

bug debugger
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.

image

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.