Skip to content

Add command for getDebuggerPackagePath #25081

Closed
microsoft/vscode-python-debugger
#713
@connor4312

Description

@connor4312

The Python extension exposes getDebuggerPackagePath, which I would like to use to assist in debugging MCP servers in devmode from core rather than having users find that path (usually in some environment) manually. A command would be helpful because I can't readily call extension API from VS Code core and I don't want to put in a ton of extra knowledge around the Python extension to pipe it around. It would get called here:

https://github.com/microsoft/vscode/pull/249034/files#diff-8306de017294e61acb0c2bd889f9e06bea41dfb2bcc8cedbf7f2e2f0b23439f0R177

Something like

executeCommand('python.getDebuggerPackagePath') -> Promise<string | undefined>

would work fine. If that command errors or is not found, I would fall back to just the debugpy string (searching on the path.)

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitytriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions