本文介绍了颤振检查器在 Visual Studio Code 中出现故障/冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天是我第一天在 Flutter 小部件检查器中遇到这个问题.当您单击选择小部件模式"时然后选择一个元素,它会冻结,并且会出现这种类似 inception 的视图:

Today was the first day I came across this issue with flutter widget inspector. When you click "Select Widget Mode" then select an element, it will freeze, and this inception-like view will occur:

此外,如果您只是在 Visual Studio 代码中调整此窗口的大小,Widget Inspector 视图将变为空白:

In addition, if you just resize this window in Visual Studio code, the Widget Inspector view goes blank:

因为这个愚蠢的错误,我几乎失去了一整天的开发时间.

I've almost lost an entire day of development because of this stupid bug.

我有一种感觉,有些东西会自动更新并破坏了一些东西.有谁知道为什么会这样?它运行得很好,然后今天突然决定中断.

I have a feeling something got updated automatically and broke things. Does anyone have any idea why this is occurring? It was working so well then all the sudden today it decided to break.

推荐答案

我遇到了这个问题并做了一些研究.似乎有一些关于此的错误报告.

I ran into this issue and did some research. There appears to be some bug reports around this.

  • https://github.com/flutter/devtools/issues/2581
  • https://github.com/Dart-Code/Dart-Code/issues/3024
  • https://github.com/flutter/flutter/issues/65480 (fixed here)

这将需要新版本的 DevTools.在发生这种情况之前,您可以将以下内容添加到您的 VS Code settings.json 中.

This will require a new release of DevTools. Until this happens you can add the following to your VS Code settings.json.

"dart.embedDevTools": false,

这将在浏览器中从 VS Code 中打开 DevTools.

This will open DevTools, from VS Code, in your browser.

这篇关于颤振检查器在 Visual Studio Code 中出现故障/冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 11:44