-
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
VSCode python debugger incredibly slow / unresponsive / slow repr / spinning icons in "Variables" pane #1391
Comments
Issue has been fixed. The issue was caused by an instance of ml_collections ConfigDict() class. A neural net was added to the dict which caused the slowdown. The network has ~22million weights. I believe this causes slowdown in repr as vscode debugger may be running repr query for all parameters in network. Have not confirmed if this is the exact cause, regardless I have changed code and no slowdown. Example of code which throws the issue: import ml_collections
cdict=ml_collections.ConfigDict()
neural_net=load_my_neural_net()
cdict.neural_net=neural_net``` |
To clarify, debugger uses |
in my case this did not help. |
That would depend upon VS code (or Visual Studio) or whatever your IDE is sending a variables request. If you turn on logging, the vscode log should show if there is a variables request or not. |
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:
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true,
"logToFile": true
},
The following issues are encountered:
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
debugpy.adapter-6340.log
The text was updated successfully, but these errors were encountered: