Debugging not working on Insiders build of the Python extension
See original GitHub issueEnvironment data
- PTVSD version: debugpy 1.0.0b3
- OS and version: Windows 10
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.6 venv
- Using VS Code or Visual Studio: VS Code 1.43.0
- Python Extension version: 2020.4.67731-dev
Actual behavior
Debugging tries to start:
C:\Users\luabud\Apps\MVPSummit2020\tweeterapp> cmd /C "set "DEBUGPY_LAUNCHER_PORT=58504" && set "DEBUGPY_LOG_DIR=c:\Users\luabud\.vscode\extensions\ms-python.python-2020.4.67731-dev" && c:\Users\luabud\Apps\MVPSummit2020\tweeterapp\env\Scripts\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.4.67731-dev\pythonFiles\lib\python\debugpy\wheels\debugpy\launcher C:\Users\luabud\Apps\MVPSummit2020\tweeterapp\manage.py runserver "
But then it shows this:
And this:
Launch.json file:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}\\manage.py",
"args": [
"runserver",
"--noreload"
],
"django": true,
"logToFile": true
},
]
}
Steps to reproduce:
- On Windows, have a venv selected and try to debug a Django application with the above configuration.
Logs
debugpy.adapter-4500.log debugpy.launcher-7536.log debugpy.pydevd.10892.log debugpy.pydevd.16616.log debugpy.server-10892.log debugger.vscode_d61238c6-9c58-4bfe-af6e-3b25496517dc.log
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
VS Code Debugger not working for python
Any troubleshooting tips. It seems when I do Run->"start Debugging' no command comes to terminal. Any VS Code log file that I can...
Read more >Run and Debug Python in the Web - Visual Studio Code
Run and Debug Python code in the Web.
Read more >Visual Studio Code Debugger not launching
When launching VS Code, if the message "Unable to start the C/C++ language server. IntelliSense features will be disabled" appears, this is ...
Read more >Chromium Docs - Visual Studio Code Dev
For more information on debugging Python code, see here. ... This Page; Setup. Installation; Usage; Fixes for Known Issues; Useful Extensions; Color Scheme ......
Read more >Visual Studio Code - ArchWiki
These different flavors are all built from the Code - OSS repository, ... Remove the line to solve the problem or use an...
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
The issue is due to the code @int19h pointed to. This is broken in both VS Code and VS Code Insiders. This has to be addressed for it to work before next release. This does not impact current stable release.
This occurs because
debugpyAttach
event returns this object:This should be addressed by https://github.com/microsoft/vscode-python/pull/10517 . Using the insiders build after the CI for it completes should address this issue. /cc @int19h