microsoft / microsoft/vscode-python-debugger

Debugger 'hangs' when working with `pixi` environments

未關閉
#741 11 則留言 7 個 reaction 已指派 1 人 在 GitHub 檢視

@eleanorjboyd 已經在處理了。

開始於 2025年6月30日。

triage-needed
主要語言
TypeScript
星號
181
分支
126
平均合併
2 天 3 小時
30 天內合併 PR
3

描述

Type: Bug

Behaviour

Attempting to run the debugger in pixi based projects (i.e., the environment is within the .pixi/default folder results in failures.

The debugger will 'hang' without showing any error or warning. This is new behaviour, as pixi projects did not have this problem before.

Steps to reproduce:

  1. Use linux (I use Fedora 41)
  2. Create a small projext via pixi init --format pyproject
  3. In vscode, select default as the python environment for that project.
  4. Write a dummy hello world script, put a breakpoint.

When debugging that file, you'll see the launcher 'hang'.

Image

After a while you'll get the following:

Image

Oddly enough, debugging works well for .ipydb files.

Diagnostic data

launch.json configuration

{
    // 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 Debugger: Current File",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal"
        }
    ]
}

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

**2025-06-26 15:59:34.035 [info] Send text to terminal: /home/ivanruizmanuel/.pixi/bin/pixi shell --manifest-path /home/ivanruizmanuel/Documents/git/module_powerplants/pixi.toml
2025-06-26 16:00:28.133 [info] Send text to terminal: /home/ivanruizmanuel/.pixi/bin/pixi shell --manifest-path /home/ivanruizmanuel/Documents/git/module_powerplants/pixi.toml
2025-06-26 16:01:43.096 [info] Send text to terminal: /home/ivanruizmanuel/.pixi/bin/pixi shell --manifest-path /home/ivanruizmanuel/Documents/git/module_powerplants/pixi.toml
**

Output for Python Debugger in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python Debugger)

2025-06-26 16:00:27.865 [info] Debugging using the editor button 'Debug in terminal'
2025-06-26 16:00:27.867 [info] Getting configurations for workspace
2025-06-26 16:00:27.868 [info] Using configuration in launch.json
2025-06-26 16:00:27.956 [info] Using the only workspaceFolder found:  /home/ivanruizmanuel/Documents/git/module_powerplants
2025-06-26 16:00:27.993 [info] Resolving launch configuration with substituted variables
2025-06-26 16:00:27.993 [info] Using the only workspaceFolder found:  /home/ivanruizmanuel/Documents/git/module_powerplants
2025-06-26 16:00:28.002 [info] DAP Server launched with command: /home/ivanruizmanuel/Documents/git/module_powerplants/.pixi/envs/default/bin/python /home/ivanruizmanuel/.vscode/extensions/ms-python.debugpy-2025.8.0-linux-x64/bundled/libs/debugpy/adapter
2025-06-26 16:00:28.125 [info] Received 'debugpySockets' event from debugpy.
2025-06-26 16:00:28.127 [info] Received 'debugpySockets' event from debugpy.
2025-06-26 16:00:28.127 [info] Received 'debugpySockets' event from debugpy.

Extension version: 2025.8.0
VS Code version: Code 1.101.0 (dfaf44141ea9deb3b4096f7cd6d24e00c147a4b1, 2025-06-11T15:00:50.123Z)
OS version: Linux x64 6.14.9-200.fc41.x86_64
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.3
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Unknown
System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-13700H (20 x 3273)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 1, 1
Memory (System) 15.24GB (9.02GB free)
Process Argv
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。