microsoft / microsoft/vscode-cpptools

command:pickProcess does not work with remote debug.

Open
#5,566 1 comment 2 reactions 1 assignee View on GitHub

@WardenGnaw is already working on this.

Since May 26, 2020.

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

image

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.