You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debugging fails when using a pipenv environment that gets activated with pipenv shell #4203
Got this issue since today. Was perfectly fine before.
PS <path> pipenv shell
Loading .env environment variables…
Launching subshell in virtual environment…
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
I just started having this issue today, and noticed the debug command was being cut off. Adding the python.terminal.activateEnvironment setting corrected this, but I can only execute the script completely - line-by-line debugging doesn't work (tried in VS Code Insiders and stable).
In my case, "python.terminal.activateEnvironment": false doesn't prevent pipenv from starting a new shell.
My workaround is to temporarily rename Pipfile before running the debugger, and that's the only way to get it working as far as I can tell.
I'd love to know if the launch.json file could be tweaked to sort this issue more elegantly!
Activity
Adanteh commentedon Jan 30, 2019
Got this issue since today. Was perfectly fine before.
is all it does when I open up debugging.
DonJayamanne commentedon Jan 30, 2019
Temporary work around
.vscode/settings.json)"python.terminal.activateEnvironment": false,Handsome2734 commentedon Jan 31, 2019
This works for the first time. But the issue still happens after "Restart" debugger.

And I think I heard a beep after I clicked Restart...
JoBrad commentedon Jan 31, 2019
I just started having this issue today, and noticed the debug command was being cut off. Adding the
python.terminal.activateEnvironmentsetting corrected this, but I can only execute the script completely - line-by-line debugging doesn't work (tried in VS Code Insiders and stable).20 remaining items
DonJayamanne commentedon Mar 29, 2020
We reverted old implementation #4394
GBrachetta commentedon Dec 3, 2020
In my case,
"python.terminal.activateEnvironment": falsedoesn't prevent pipenv from starting a new shell.My workaround is to temporarily rename
Pipfilebefore running the debugger, and that's the only way to get it working as far as I can tell.I'd love to know if the launch.json file could be tweaked to sort this issue more elegantly!
karrtikr commentedon Oct 22, 2021
Closing as we no longer use
pipenv shellcommand: #10611 (comment)