Title: Incorrect debugpy command selected in terminal · Issue #931 · microsoft/vscode-python-debugger · GitHub
Open Graph Title: Incorrect debugpy command selected in terminal · Issue #931 · microsoft/vscode-python-debugger
X Title: Incorrect debugpy command selected in terminal · Issue #931 · microsoft/vscode-python-debugger
Description: Before creating a new issue, please check the FAQ to see if your question is answered there. Notes We have debugpy python package installed locally and running debugpy in the VSCode terminal selects the local installation instead of the ...
Open Graph Description: Before creating a new issue, please check the FAQ to see if your question is answered there. Notes We have debugpy python package installed locally and running debugpy in the VSCode terminal select...
X Description: Before creating a new issue, please check the FAQ to see if your question is answered there. Notes We have debugpy python package installed locally and running debugpy in the VSCode terminal select...
Opengraph URL: https://github.com/microsoft/vscode-python-debugger/issues/931
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect debugpy command selected in terminal","articleBody":"Before creating a new issue, please check the [FAQ](https://github.com/microsoft/debugpy/wiki/FAQ) to see if your question is answered there.\n\n## Notes\n\nWe have `debugpy` python package installed locally and running debugpy in the VSCode terminal selects the local installation instead of the bundled extension wrapper in `.vscode-server/extensions/ms-python.debugpy-2025.18.0/bundled/scripts/noConfigScripts/debugpy`. This broke since debugpy **1.8.5**, which added the debugpy script to the python package. This happens because the extension wrapper path is added to the end of PATH rather than beginning. Can the extension be modified to prepend the bundled path to the front of PATH instead?\n\n\n## Environment data\n\n- debugpy version: 1.8.16 (run `import debugpy; print(debugpy.__version__)` if uncertain)\n- OS and version: Red Hat Enterprise Linux 8.10 (Ootpa)\n- Python version (\u0026 distribution if applicable, e.g. Anaconda): 3.11.13\n- Using VS Code or Visual Studio: Yes\n\n## Actual behavior\n\nIn VSCode terminal when we run `debugpy \u003cpython-filename\u003e`. Instead of attaching a debugger, it gives us the help menu.\n\n## Expected behavior\n\nRunning `debugpy \u003cfilename\u003e` should select the **debugy** version bundled with the ms-python.debugpy extension and attach the debugger.\n\n## Steps to reproduce:\n1. Install **Debugpy** version `1.8.16` on the system using pip.\n2. Open the project in VSCode\n3. Download the **Python Debugger Extension** (@id:ms-python.debugpy) V2025.18.0\n4. Try debugging a python file by running `debugpy \u003cfilename\u003e` in VSCode Terminal.\n","author":{"url":"https://github.com/tulis-deshaw","@type":"Person","name":"tulis-deshaw"},"datePublished":"2026-01-17T05:33:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/931/vscode-python-debugger/issues/931"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:436a5b4c-3766-b014-dcb7-1cf1461bd897 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D188:DA11A:2ABFC08:38C8369:6981818D |
| html-safe-nonce | 6121091190d468adb579eaeee553a8df76849939863787968e5500f26ce2860b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTg4OkRBMTFBOjJBQkZDMDg6MzhDODM2OTo2OTgxODE4RCIsInZpc2l0b3JfaWQiOiIzNzYxOTcyOTAyOTkyMzgwMzAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2ce77fad8192e26b3316488296c991845073125d451e1d677f5ee6b5cf3c3277 |
| hovercard-subject-tag | issue:3834619880 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python-debugger/931/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b5e82712acf5fe94311fe4434abe76a0a3166dcfcf65268dbaeb49bd8e60bb68/microsoft/vscode-python-debugger/issues/931 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b5e82712acf5fe94311fe4434abe76a0a3166dcfcf65268dbaeb49bd8e60bb68/microsoft/vscode-python-debugger/issues/931 |
| og:image:alt | Before creating a new issue, please check the FAQ to see if your question is answered there. Notes We have debugpy python package installed locally and running debugpy in the VSCode terminal select... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tulis-deshaw |
| hostname | github.com |
| expected-hostname | github.com |
| None | e137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python-debugger git https://github.com/microsoft/vscode-python-debugger.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 615045081 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python-debugger |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 615045081 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-python-debugger |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd58d68a7813bbec9c91422c8c35f4af33832d70 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width