VS Code 调试器到达第一个断点的速度极慢 [英] VS Code Debugger Extremely Slow to Reach First Breakpoint

查看:69
本文介绍了VS Code 调试器到达第一个断点的速度极慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm using VS Code on Windows 10, to debug both Python and React. The debugger is extremely slow to reach the first breakpoint, for both Python and JS/Chrome. The sequence of actions I'm observing is:

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

  1. 第一个断点仅在10-60 秒后到达/突出显示.在它之间挂起.我尝试点击屏幕上的任意位置,但应用程序被冻结.
  1. The first breakpoint only gets reached/highlighed 10-60 seconds later. In between it hangs. I try to click anywhere on the screen but the application is frozen.

已安装的扩展:

关于:

推荐答案

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

This is a VS Code bug (one that I just spent hours diagnosing until I stumbled upon the workaround lol).

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

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

Current workaround until May fix apparently:

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

Need to set the following in settings.json in VS Code

debug.focusWindowOnBreak:假

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

这篇关于VS Code 调试器到达第一个断点的速度极慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆