-
Notifications
You must be signed in to change notification settings - Fork 95
“No-config debugging” feature cannot be used on NixOS #992
Description
Description
When using the "No-config debugging" feature provided by the plugin on NixOS, the following error message appears.
zsh: /home/ardenet/.vscode/extensions/ms-python.debugpy-2025.18.0-linux-x64/bundled/scripts/noConfigScripts/debugpy: bad interpreter: /bin/bash: no such file or directoryReason
Due to Nixos's unique directory structure, the /bin directory doesn't contain binary executables. Instead, it maintains compatibility with traditional Linux distributions by preserving the special env command. Because the script <plugin_path>/bundled/scripts/noConfigScripts/debugpy uses the absolute path /bin/bash in its shebang, the script cannot run on NixOS. It is recommended to change it to #! /usr/bin/env bash to ensure the script runs correctly on different systems to the greatest extent possible.
Version Info
OS: NixOS 26.05 (Yarara) x86_64 Linux x64 6.18.18
VSCode Version: 1.111.0+ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb
Electron: 39.6.0
ElectronBuildId: 13330601
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
vscode-python-debugger: v2025.18.0