-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to debug and select interpreter #1039
Comments
Looks like the installation of your Python extension is corrupted. To keep things simple, please do not debug (lets focus our testing to one area):
|
Thank you very much Sir, your second method i.e. deleting the python extension from python extension folder worked and the code is working normally from the context menu option "Run file in terminal", and select interpreter is also working fine and it showed me to choose the python interpreter installed into my system, Loads of thanks. :) |
Please could you try debugging a simple python file as follows: |
Sir, it is showing the same error as above, "Time out waiting for debugger connection." But then I deleted the .vscode file in my folder and re-run the debugger and it worked fine and showing the debugger tray on the top of my workspace and printed Hello World. When I used the integrated debugger for my turtle code the debugger worked fine and accepted the inputs perfectly, But when I try to run my turtle code again (via debugger and choosing Python current file as debugger option), it gets stuck after my first input (I know this is irrelevant to the question but if you could help, it would be a great deal), I've attached a .zip file for the same. P.S. My doubt is cleared regarding aforementioned case, but just wanted to ask the same for the debugging option via Python current file and why my code (which consists of input in turtle code) gets stuck using debugger option as Python current file. |
When using the
You need to use the Please let me know if this resolves your issues |
As stated by you, I installed PTVSD 4 using terminal in vs code and then again when I re-run the file using Experimental debugger (current file), it again gets stuck when arrived at first input. |
Environment data
Actual behavior
< After Feb 2018 V-1.21 update, debugger option is not working (I've created folder) and it's showing error 'Debug adapter process has terminated unexpectedly'.
Also I cannot select the interpreter from the command palette, and it shows error message:
"command 'python.setInterpreter' not found". I've tried uninstalling and reinstalling vs code and also disabled the extensions and then checked for running the code either in debugger mode and integrated terminal but nothing works. >
Expected behavior
< Debugger should work perfectly fine and show the tray consisting of start stop and pull over buttons to carry out the debugging session, also by using the combination ctrl + shift + p and choosing the interpreter it should have shown me the current python interpreter installed in my system which it showed earlier perfectly before the latest update >
Steps to reproduce:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)VScode1.zip
The text was updated successfully, but these errors were encountered: