VS Code 调试器到达第一个断点的速度极慢

问题描述

我在 Windows 10 上使用 VS Code 来调试 Python 和 React。对于 Python 和 JS/Chrome,调试器到达第一个断点的速度非常慢。我观察到的动作顺序是:

  1. VS Code 的程序选项卡立即亮起

enter image description here

  1. 一个断点仅在10-60 秒后到达/突出显示。在它之间挂起。我尝试点击屏幕上的任意位置,但应用程序被冻结。

enter image description here

已安装的扩展:

enter image description here

关于:

enter image description here

解决方法

我似乎找到了可以加快速度的东西。如果我抓取并移动 VS Studio 的标题栏,则会到达并突出显示断点。

这是初步发现,如果我发现其他东西,我会编辑它。

enter image description here

,

这是一个 VS Code 错误(我只是花了几个小时来诊断这个错误,直到我偶然发现了解决方法哈哈)。

见:https://github.com/microsoft/vscode/issues/123257?_pjax=%23js-repo-pjax-container

目前的解决方法,直到 5 月明显修复:

需要在 VS Code 的 settings.json 中设置以下内容

debug.focusWindowOnBreak:假

https://i.stack.imgur.com/Y223f.png