question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugger we ship is not used in the interactive window

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Sep 26, 2019

Thanks @luabud, I’ll try and repro as I address the issue.

0reactions
DavidKutucommented, Nov 7, 2019

Validated

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found