如果使用服务器,Dartium调试器将停止工作

时间:2013-04-25 21:25:23

标签: debugging dart dartium

将dartium更新为0.4.7.1_r21548(0.5.0.1_r21823相同)后,我无法再调试。我写了一个小测试,发现如果我直接调用文件就会遇到断点。但是,如果我使用服务器并调用页面(http://localhost:8080/test.html),则dart代码可以正常工作,但错过了断点!

我没有使用dart-editor进行调试。只使用了dartium。

这是我的测试:

test.dart

void main() {
  print("hallo");
}

的test.html

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Test</title>
  <script type="text/javascript" src="packages/browser/dart.js"></script>
  <script type="application/dart" src="test.dart"></script>
</head>
<body>
Hallo
</body>
</html>

1 个答案:

答案 0 :(得分:0)

这似乎是Dart编辑器中的一个错误,一群人遇到过这个错误。

我们目前正在研究它。

您可以点击此处的错误:https://code.google.com/p/dart/issues/detail?id=10215