问题描述
我在 Windows 10 上使用 VS Code 来调试 Python 和 React。对于 Python 和 JS/Chrome,调试器到达第一个断点的速度非常慢。我观察到的动作顺序是:
- VS Code 的程序选项卡立即亮起
已安装的扩展:
关于:
解决方法
我似乎找到了可以加快速度的东西。如果我抓取并移动 VS Studio 的标题栏,则会到达并突出显示断点。
这是初步发现,如果我发现其他东西,我会编辑它。
,这是一个 VS Code 错误(我只是花了几个小时来诊断这个错误,直到我偶然发现了解决方法哈哈)。
见:https://github.com/microsoft/vscode/issues/123257?_pjax=%23js-repo-pjax-container
目前的解决方法,直到 5 月明显修复:
需要在 VS Code 的 settings.json 中设置以下内容
debug.focusWindowOnBreak:假