-
Notifications
You must be signed in to change notification settings - Fork 137
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
PtvsdWheels37 - experiment breaks the debugger under windows #140
Comments
Just to add my pythonpath is set to a virtual environment directory instead of the usual C:\Python37 |
If you do |
I just tried that but I don't think it gets that far
for info for the launh.json (vscode) I'm using
Just in case it's something odd to do with the use of a python virtual environment |
just tried it with the fix in place, but it didn't seem to find the debugpy module |
It does use it - the difference between being in the experiment or not is whether you're using debugpy or not; the name is somewhat misleading (it's from before we renamed ptvsd 5.x to debugpy). Can you share what it looks like in the terminal? Both the command line that it submits, and any resulting output, if there is one. Also, try adding |
I just had a dig through the changelog file in the installed directory, I think it's using v1.0.0b5 for debugpy with logging added to launch.json debugger.vscode_cc7caf96-c7ca-4c82-8dfe-19143a4d0be9.log
|
I checked all the other log windows under vscode but couldn't find any other text |
You've mentioned that you're using a virtual environment. Does it work for you if you try with a global interpreter? This should also let you get the version number out of it. |
I had a look at the vscode extensions directory under C:\Users\ric.vscode\extensions\ms-python.python-2020.4.74986\pythonFiles\lib\python\debugpy\wheels\debugpy_version.py
|
Thank you! This confirms that it's not one of the original issues with the same symptoms - those should all be resolved in b7. Did running it without virtual environment work for you, or are you running into the same problem regardless? |
One other thing that'd be interesting to try is to start the debug adapter manually, and then tell VSCode to use it. To start it, run this in the terminal: py -3 ...\debugpy\adapter --port 8765 --log-stderr and then add the following to your launch.json: "debugServer": 8765, That way, we should be able to observe any early failures. |
Please re-open and attach the logs if you can still repro this on the most recent version of the Python extension and debugpy. |
Environment data
Actual behavior
This is similar to what other users have been seeing but the symptoms were a little different in my case which is why I raised a new issue. The debugger just wouldn't launch at all
Under Log Windows:
as per #108 adding the following to the user settings file fixed it
I did try disabling all other extensions (except for cosmetic ones) and tried this out with a project that worked before. (one that I came back to which I knew worked before the updates)
maybe this is an issue for https://github.com/Microsoft/vscode-python instead I'm not sure (if they're using an older version than they should be)
Steps to reproduce:
The text was updated successfully, but these errors were encountered: