vscode: Debug console is not working well after last release
Type: Bug
I start debugging, and I can use the debug console as normal, but when I restart debugging, the console stops working. I have to stop, and debug again. However, the behaviour is unstable, and at times the debug bar does not respond, so I have to restart VSCode.
When I work without extensions, the behaviour is similar.
OS: Ubuntu 22.04.5 LTS
VS Code version: Code 1.97.0 (33fc5a94a3f99ebe7087e8fe79fbe1d37a251016, 2025-02-04T22:41:26.688Z) OS version: Linux x64 6.8.0-52-generic Modes:
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 5 5600H with Radeon Graphics (12 x 4164) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off webnn: disabled_off |
| Load (avg) | 1, 2, 1 |
| Memory (System) | 15.03GB (7.95GB free) |
| Process Argv | –crash-reporter-id d0a222cb-a408-4f0e-a286-bea090c7e7aa |
| Screen Reader | no |
| VM | 0% |
| DESKTOP_SESSION | ubuntu |
| XDG_CURRENT_DESKTOP | Unity |
| XDG_SESSION_DESKTOP | ubuntu |
| XDG_SESSION_TYPE | x11 |
Extensions (20)
| Extension | Author (truncated) | Version |
|---|---|---|
| Bookmarks | ale | 13.5.0 |
| vscode-markdownlint | Dav | 0.58.2 |
| gitlens | eam | 16.2.2 |
| copilot | Git | 1.265.0 |
| copilot-chat | Git | 0.24.0 |
| todo-tree | Gru | 0.0.226 |
| wordcounter | kir | 2.4.4 |
| git-graph | mhu | 1.30.0 |
| debugpy | ms- | 2025.0.0 |
| python | ms- | 2025.0.0 |
| vscode-pylance | ms- | 2025.2.1 |
| jupyter | ms- | 2025.1.0 |
| jupyter-keymap | ms- | 1.1.2 |
| jupyter-renderers | ms- | 1.1.0 |
| vscode-jupyter-cell-tags | ms- | 0.1.9 |
| vscode-jupyter-slideshow | ms- | 0.1.6 |
| vscode-icons | vsc | 12.11.0 |
| markdown-pdf | yza | 1.5.0 |
| dictionary-completion | yzh | 1.3.1 |
| markdown-all-in-one | yzh | 3.6.2 |
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
customenabled:31232589
9064b325:31222308
copilot_t_ci:31222730
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 32
- Comments: 26 (3 by maintainers)
Commits related to this issue
- debug: fix input staying readonly during a restart when repl not visible Refs #239900 — committed to microsoft/vscode by connor4312 2 years ago
- debug: fix input staying readonly during a restart when repl not visible Refs #239900 — committed to microsoft/vscode by connor4312 2 years ago
- debug: fix input staying readonly during a restart when repl not visible (#240430) Refs #239900 — committed to microsoft/vscode by connor4312 2 years ago
- debug: fix input staying readonly during a restart when repl not visible (#240431) Refs #239900 — committed to microsoft/vscode by connor4312 2 years ago
I am (MacOS M3) on the latest vscode version and it is still broken: Version: 1.97.2 (Universal) Commit: e54c774e0add60467559eb0d1e229c6452cf8447
The issues I am having:
It is not having these issues in the latest Insiders.
On Ubuntu 20 and VSCode 1.97.2 still don’t have autocomplete in debug console.
For me (VScode version 1.97.0), this problem occurs when I am debugging python code. When I first run the debugger the debug console accepts inputs, but if I use the Restart button to restart the debugger (or Ctrl+Shift+F5), the debug console will become inactive. However, if I Stop the debugger, and then start it again, the debug console will be active again. Inactive means that I cannot write anything into the text field, but using the arrows will bring up recent lines, which can be executed.
Downgrading to 1.96.4 (I am on Ubuntu 24.10: sudo apt install code=1.96.4-1736991114) resolves the issue.
The output of using Developer: Toggle Developer Tools with 1.97.0:
at line lifecycle.ts:453 Error: Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked! at Nfi.add (lifecycle.ts:453:18) at variablesView.ts:589:27
Additionally using version 1.96.4 (the one which works) has more errors shown in the output:
at line lifecycle.ts:453 Error: Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked! at Nfi.add (lifecycle.ts:453:18) at variablesView.ts:589:27
at loq.ts:445 ERR Invalid debug adapter: Error: Invalid debug adapter at vVt.p (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:748:95) at vVt.$acceptDAExit (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:748:35) at Odt.S (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3144:41680) at Odt.Q (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3144:41458) at Odt.M (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3144:40546) at Odt.L (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3144:39783) at oee.value (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3144:38444) at x.B (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:30:748) at x.fire (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:30:967) at K6.fire (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:762:10348)
at lifecycle.ts:762 Error: Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked! at ts.set (lifecycle.ts:762:17) at debugSession.ts:1621:19 at Array.map (<anonymous>) at BIs.run (debugSession.ts:1615:31)
Same
It’s fixed on Insiders and will come to stable in tomorrow’s patch release
I am encountering a similar issue. More specifically the Python debug console does not autocomplete. Instead, tab is moving focus, though I did NOT activate “tab moves focus”.
I am debugging Python.
I also attach the error in the Developer Tools window after I click on the restart icon.
same
I’ve got logs overlapping older logs
Same for me, Ubutun 22.04, VScode 1.97.2 autocomplete works at first, but then it stops working after some time. (in debug console)
@connor4312 This is the only error while producing the issue.
My experience is that I cannot use the debug console after a while. It is completely unresponsive to any keystroke. I cannot tell when it happens. It just happens during the debugging session at some point.
I am still struggling with this. I am on the latest version:
Python version:
Python debugging console suggestions work after a vscode restart and then they stop working after 1-2 debugging sessions.
Can I get some help on this please? Do you have any insights @connor4312?
https://gifcap.dev/, as @vs-code-engineering suggested.
which gif making software are you using by the way?
I’m having similar problems, in VSCode 1.97.0 on Ubuntu 20. On breakpoint in any Python file, the autocomplete and intellisense in the Python Debug console doesn’t work. I’m able to evaluate expressions and variables. I had also event of where I was unable to write into the debug console at all, but I’m unable to replicate it.
thanks so much for this 😸. Did notice it happens when I restart the debugging session