Dart Flutter DevTools“调试器"标签不显示 [英] Dart Flutter DevTools "Debugger" Tab not showing up

查看:16
本文介绍了Dart Flutter DevTools“调试器"标签不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在尝试使用 dart DevTools 调试我的应用程序的一些问题,但我注意到调试器"无法正常工作.选项卡对我不可用.这是我在 Web 调试器中看到的屏幕截图:

Hello I'm trying to debug some issues with my app using dart DevTools and I notice that the "debugger" tab is not available to me. Here is a screenshot of what I see in the web debugger:

我注意到这篇文章说我应该安装调试器".Web DevTools 中的选项卡:https://dart.dev/tools/dart-devtools

I notice that this article says I should have the "debugger" tab in the web DevTools: https://dart.dev/tools/dart-devtools

任何建议将不胜感激!

我注意到我在使用 AndroidStudio 时有调试器,但希望在 VisualStudio Code 中使用它

I notice I have the debugger when I use AndroidStudio but would like to have it in VisualStudio Code

推荐答案

这是从 VS Code 运行时的预期行为,因为 VS Code 调试器可用.将两个调试器同时连接到同一个应用程序(两个调试器都希望控制断点和恢复)会很复杂,因此它被禁用.

This is expected behaviour when running from VS Code, as the VS Code debugger is available instead. There are complications with having two debuggers attached to the same app at the same time (both debuggers expect to control breakpoints and resuming) so it's disabled.

如果你真的想尝试一下,你可以编辑地址中的 hide=debugger,但要注意事情可能无法正常工作(至少在调试器能够更好地协同工作之前)以避免此限制).

If you really want to try it you could just edit the hide=debugger out of the address, but be aware things might not work correctly (at least until the debuggers are able to work together better to avoid this limitation).

这篇关于Dart Flutter DevTools“调试器"标签不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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