Skip to content

Debugging Python code does not work #1125

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

Closed
tsalinger opened this issue Mar 20, 2018 · 10 comments
Closed

Debugging Python code does not work #1125

tsalinger opened this issue Mar 20, 2018 · 10 comments
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@tsalinger
Copy link

tsalinger commented Mar 20, 2018

Original Issue by @Joukahainen82 created at vscode repo:

Issue Type

Bug

Description

Just after downloading and installing the latest update to VS Code I cannot debug my Python code. Everytime I get the message:

Error
Debug adapter process has terminated unexpectedly

Before that last update debugging the same code ran fine.

VS Code Info

VS Code version: Code 1.20.1 (f88bbf9137d24d36d968ea6b2911786bfe103002, 2018-02-13T15:34:36.336Z)
OS version: Windows_NT x64 10.0.16299

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)
Memory (System) 7.80GB (1.88GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 0%
Extensions (16)
Extension Author (truncated) Version
django-html bib 1.2.0
django-snippets bib 1.1.0
jupyter don 1.1.4
python-extension-pack don 1.0.1
file-icons fil 1.0.7
code-runner for 0.8.7
vscode-csharp-snippets jor 0.2.0
docomment k-- 0.0.17
MagicPython mag 1.0.12
python ms- 2018.1.0
csharp ms- 1.14.0
vs-keybindings ms- 0.1.7
vscode-icons rob 7.20.0
python tht 0.2.3
python-extended-snippets tus 0.0.1
jinja who 0.0.8
Reproduces only with extensions

User @Tiancityrua has the same issue:

This problem still occur for me in the latest version.I can't run any python code now!

@DonJayamanne
Copy link

  • Please could you uninstall the extension and re-install this
  • Please try debugging a simple python file such as the following (let us know how that goes):
print("Hello World")
  • Please could you go into the launch.json file and add a setting as follows:
    "logToFile": true
1. Next start debugging
2. Once it fails, open the extensions folder using the command `Extensions: Open Extensions Folder`,
3. Go into the python extension folder and locate the file `debug.log`
4. Upload the file here

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster and removed needs verification labels Mar 20, 2018
@zztalker
Copy link

zztalker commented Mar 28, 2018

Have the same issue. Did everything as you wrote, but "debug.log" file didn't appear.

VS Code 1.21.1 x64

@DonJayamanne
Copy link

@zztalker

Please try un-installing the extension and installing it again. If that does not work go into the extensions folder (select the command Extensions: Open Extensions Folder from the command palette) and locate the Python extension directory and delete it manually).

Let me know how this goes.
If it still fails, please provide the following info:

  • Python version
  • Extension version
  • OS Version
  • Ensure you are trying to debug a file with a simple `print("Hello World")

@zztalker
Copy link

zztalker commented Mar 29, 2018

@DonJayamanne

It's work! The problem was in the access rights on the folder - to delete it manually I have to delete everything inside the folder and then ms-python folder at all. After I manually clean folder and reinstall extension debug started and debug.log appeared in the extension folder.

Thank you for help!

@Tiancityrua
Copy link

@DonJayamanne
It's really work!Maybe after this time,I can manually clean folder and reinstall extension to solve similar problems.Thank you for a lot!

@brettcannon brettcannon added closed-invalid and removed info-needed Issue requires more information from poster closed-invalid labels Mar 29, 2018
@lywyz
Copy link

lywyz commented Apr 9, 2018

@DonJayamanne
Yes, it really works! I delete any folder related to python and reinstall python and anaconda extensions. Having done that, I find my vscode works again! Thanks for your advice! Best wishes to you!

@DonJayamanne
Copy link

@Joukahainen82
Please confirm this works after uninstalling and reinstalling the extension.

@brettcannon brettcannon added the info-needed Issue requires more information from poster label Apr 9, 2018
@Tinuxx
Copy link

Tinuxx commented Apr 9, 2018

I have the same issue, deleting and reinstalling the extension didn't work.

@DonJayamanne
Copy link

@Tinuxx

I have the same issue, deleting and reinstalling the extension didn't work.

Please could you create a separate issue. Everyone else seems to have this issue due to a faulty installation of the extension.

@PiotrRybka82
Copy link

PiotrRybka82 commented Apr 10, 2018 via email

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

7 participants