Debugger we ship is not used in the interactive window
See original GitHub issueThis code works:
import sys;
sys.path.extend(['C:\\Users\\rchiodo.REDMOND\\.vscode\\extensions\\ms-python.python-2019.8.29288\\pythonFiles\\lib\\python'])
import ptvsd;
But then if you run this (which we do to check if ptvsd is installed or not)
!{sys.executable} -c "import ptvsd;print(ptvsd.__version)"
We get this:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'ptvsd'
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (12 by maintainers)
Top Results From Across the Web
Fix general debugging bugs for Python Interactive Window ...
I 'd like to know if it's possible, or why it's currently not possible, to run Python: Debug current file in Python Interactive...
Read more >How to stop python debugging in the interactive window of VS ...
I run the python debugging in the interactive window of VS 2022. I want to stop during the debugging (e.g. time.sleep(10000) ).
Read more >Interactive debugging in VSCode - Jess Pomfret
Luckily, the PowerShell extension for VSCode includes a debugger so we can level up our game and use that to track down our...
Read more >Python Interactive With Vscode - kimserey lam
Each run having a debugger attached, we are able to breakpoint anywhere in the file and do the usual actions we are able...
Read more >Visual Studio Code and Unity
You need to ensure that your solution is open in VS Code (not just a single file). Open the folder with your solution...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @luabud, I’ll try and repro as I address the issue.
Validated