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

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

问题描述

所以如果我在.dart文件中添加断点位于我的项目的/ web目录,它工作正常。例如我使用AngularDart和main.dart文件工作。但是当我尝试在/ lib目录中放置断点时,Dartium不会停止。



如何获得Dartium中的断点/ lib目录?



请注意,我试过用Dart编辑器,IntelliJ和Dart插件放置断点,也直接在Dartium中,没有什么工作。

解决方案

在依赖关系中设置断点搜索(无域) / code>节点并在那里设置断点。当设置在 packages 节点中的某处时,断点不会命中。





您也可以使用 breakpoint 语句为调试器顶部弹出。有关详细信息,请参见 Dart是否有断点声明。 p>

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天全站免登陆