Dartium 中的断点不起作用 [英] Breakpoints in Dartium not working

查看:33
本文介绍了Dartium 中的断点不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,如果我在位于项目的/web 目录中的 .dart 文件中添加断点,它会正常工作.例如,我正在使用 AngularDart 并且 main.dart 文件有效.但是,当我尝试在/lib 目录中的任何内容中放置断点时,Dartium 不会停止.

如何让 Dartium 中的断点与/lib 目录一起工作?

请注意,我已经尝试使用 Dart 编辑器、IntelliJ 和 Dart 插件以及直接在 Dartium 中放置断点,但没有任何效果.这是故意的吗?

解决方案

要在依赖项中设置断点,请搜索 (no domain) 节点内的源并在那里设置断点.在 packages 节点中的某处设置断点时不会命中.

您也可以使用 breakpoint 语句来弹出调试器顶部.有关详细信息,请参阅 Dart 是否有断点"语句?.>

So if I add break points in .dart files that are located in /web directory of my project, it works fine. For example I'm using AngularDart and the main.dart file works. However when I try to put a breakpoint in anything in the /lib directory, Dartium doesn't stop on them.

How can I get the breakpoints in Dartium to work with the /lib directory?

Note that I've tried putting breakpoints with Dart Editor, IntelliJ with Dart Plugin and also directly in Dartium and nothing works. Is this intended?

解决方案

To set breakpoints in dependencies search the source inside the (no domain) node and set the breakpoint there. Breakpoints don't hit when set somewhere in the packages node.

You can also use the breakpoint statement for the debugger top pop up. See Does Dart have a 'breakpoint' statement? for more details.

这篇关于Dartium 中的断点不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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