2013-04-25 95 views
1

将dartium更新为0.4.7.1_r21548(对于0.5.0.1_r21823也一样)后,我无法再调试。我写了一个小测试,发现如果我直接调用这个文件,断点会被击中。但是,如果我使用服务器并调用页面(http://localhost:8080/test.html),则dart代码完美工作,但错过了断点!Dartium调试器在使用服务器时停止工作

我没有用飞镖编辑器进行调试。只使用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> 

回答

相关问题