Skip to content

Can't debug Pixi projects after latest stable release #872

@renan-r-santos

Description

@renan-r-santos

Hi @eleanorjboyd ,

I updated VSCode stable yesterday and the Python extension pack today. Since this morning, I can't debug Python files in a Pixi environment using the Python Environments and Pixi Code extensions.

I'm pasting the "Python Debugger" logs below and attaching a simple reproducer. It seems the debugger extension is assuming the pixi binary is the actual Python executable. Is there anything I need to change in https://github.com/renan-r-santos/pixi-code to make it work again?

Thanks!

reproducer.zip

2025-11-13 10:38:02.421 [info] resolveDebugConfigurationWithSubstitutedVariables: resolving interpreter for program='/Users/rrodrigues/Documents/repos/reproducer/main.py'
2025-11-13 10:38:02.421 [info] getInterpreterDetails: resource='/Users/rrodrigues/Documents/repos/reproducer/main.py' executable='/Users/rrodrigues/.pixi/bin/pixi'
2025-11-13 10:38:02.421 [info] resolveDebugConfigurationWithSubstitutedVariables: setting debugConfiguration.python='/Users/rrodrigues/.pixi/bin/pixi'
2025-11-13 10:38:02.421 [info] Resolving launch configuration with substituted variables
2025-11-13 10:38:02.425 [info] createDebugAdapterDescriptor: request='launch' name='Python Debugger: Current File'
2025-11-13 10:38:02.425 [debug] getDebugAdapterPython: Resolving interpreter for debug adapter
2025-11-13 10:38:02.425 [info] getInterpreterDetails: resource='/Users/rrodrigues/Documents/repos/reproducer' executable='/Users/rrodrigues/.pixi/bin/pixi'
2025-11-13 10:38:02.425 [debug] Selecting active interpreter as Python Executable for DA '/Users/rrodrigues/.pixi/bin/pixi'
2025-11-13 10:38:02.425 [info] resolveEnvironment: new API resolving from string='/Users/rrodrigues/.pixi/bin/pixi'

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-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