-
Notifications
You must be signed in to change notification settings - Fork 183
Closed
Description
Debugging python scripts has become very slow in the last few days, I don't know why. Rolling vscode back to previous version didn't fix anything. The performance is very laggy whereas previously it worked very fast.
Steps to reproduce:
- Run debug with basic config:
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true,
"logToFile": true
}, - Click on arrow to start debug
The following issues are encountered:
- Breakpoints take ages to hit. However, the script contents are simple and should not take this long, so it seems the problem is with debugger.
- Messages indicating slow repr computation: "pydevd warning: Computing repr of da (ConfigDict) was slow (took 141.01s) ". I have never seen this message before. The script I am debugging runs fine if I call 'python script_name.py' without debug. ConfigDict object is from ml_collections package. I have used this package for months without any issues.
- After code has hit a breakpoint, if I try to query any variables by calling 'print(variable_name)' to the debug console, it prints no output. The cursor is still blinking. If I leave it for a few minutes, it might print the variable. It doesn't appear to be completely frozen, just going very slow.
- In debug panel on right hand side, under the 'Variables' section, there are only two displayed items: locals, and globals. These two items are accompanied by a spinning icon that never stops, even when a breakpoint is hit. Additionally, there are no variables listed underneath if I try to click the dropdown arrow. Again, if I leave it for a few minutes, a list of variables may populate eventually.
I have attached debug.log files.
debugpy.adapter-7080.log
debugpy.launcher-6365.log
debugpy.launcher-7104.log
debugpy.pydevd.6370.log
debugpy.server-6370.log
Metadata
Metadata
Assignees
Labels
No labels