-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Breakpoint hit -> window gets focused -> VS Code freezes for some time #123257
Comments
vscode-debugadapter-b6c8efc1.json.gz First breakpoint successful, then I triggered it again with no success. |
@MaxHausmann can you reproduce if you start vscode with |
With Additonal information: CMD says "Warning: 'disable-features' is not in the list of known options, but still passed to Electron/Chromium." |
@MaxHausmann lovely thanks a lot. We will investigate if we can fix this as part of the recovery release. If not we plan to fix it in the future |
@MaxHausmann probably not related, but just to be 100% sure if you put "debug.openDebug": "neverOpen" In your settings, can you reproduce? WORKAROUND "debug.focusWindowOnBreak": false |
With "debug.openDebug": "neverOpen" I can reproduce the issue. With "debug.focusWindowOnBreak": false (as the command says) VSCode window does not focus, but breakpoint got hit successfully. |
@MaxHausmann thanks, but if the windows does not get focus there is no freeze? |
Yes, there is no freeze. The icon in the taskbar is also not blinking. |
This issue has been open for over a year now. Has there been any progress on fixing this bug? Is there an ETA? Has the root cause for the This issue still happens for me on Windows 11 with all the latest updates. It also happens when I simply leave the computer unattended for a while. VSCode hangs and takes ~30s to respond to input again. Same thing happens with certain pages opened in Chrome. |
I am coming from issue 146737. I am on Arch Linux with Sway WM:
I can confirm the bug there as well, that after switching focus from another application back to VSCode, it takes between 1-3s until VSCode becomes responsive again. I am happy to help debug, if need be. |
Solution here: #146737 (comment) |
This issue still occur for v1.68.1 |
@hanct Have you tried uninstalling completely and doing a clean install as I described here? #146737 (comment) |
@lorand-horvath |
@skaldesh Well, it's the ONLY solution that I could find after many months of searching and trying everything possible and impossible. |
I try to avoid that..cos when I start moving the code window (as suggested by others), the breakpoint appear. So I believe nothing to do with the cache sizes. |
Then I also realize that sometime I don't even need to move the window, the break point response fast..but that is intermittent |
For now, I try not to do anything so that when there is a fix, I have a broken vscode to prove this fix is working. |
I have opened a performance issue via code and attached a performance profile as well, since I got hit by this bug multiple times today. I am on Linux. |
Steps to Reproduce:
Hints:
Does this issue occur when all extensions are disabled?: Yes
Launch configuration (no, this problem is not related to brave, it happens also in google chrome):
The text was updated successfully, but these errors were encountered: