Skip to content

Python: Attach using Process Id no longer prompting for process  #14678

@captainwasabi

Description

@captainwasabi

Environment data

  • VS Code version: Latest, I just reinstalled
  • Extension version (available under the Extensions sidebar): 2020.10.332292344
  • OS and version: Windows 10 64bit 1909 (upgraded to 20H2, same issue)
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...):N/A
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Value of the python.languageServer setting: XXX

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

Able to attach to ProcessID

launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Attach using Process Id",
"type": "python",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}

Actual behaviour

Never get prompted to pick process. If I put the actual processID in the string it catches thebreakpoint.

Steps to reproduce:

enter the above then run the debugger

Logs

Nothing that seems relevant

Metadata

Metadata

Assignees

Labels

area-debuggingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions