【问题标题】:Dartium debugger stops working if server is used如果使用服务器,Dartium 调试器将停止工作
【发布时间】:2013-04-25 21:25:22
【问题描述】:

将 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>

【问题讨论】:

    标签: debugging dart dartium


    【解决方案1】:

    这似乎是 Dart 编辑器中的一个错误,很多人都遇到了。

    我们目前正在调查。

    您可以在此处关注有关此问题的错误:https://code.google.com/p/dart/issues/detail?id=10215

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-01-25
      • 1970-01-01
      • 2013-05-09
      • 2013-02-22
      • 2015-02-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多