Debugging a Dart WebApp with Launch target “URL” fails

烂漫一生 提交于 2019-12-24 17:08:32

问题


I am using Dart Editor r22223 to debug a WebApp. If I launch the HTML file debugging works but if I open the HTML via URL (in my case that's http://localhost:8080/samplewebappohnewebui.html) then debugging seems not possible.

I am able the set breakpoints but the debugger does not stop at the breaktpoints.

Any hints?

[Update]
The reason for serving the HTML-file on 8080 is that the HTML file is build by Velocity...

[Update 2]

OK - I added my Dev-Configuration. In the background there is Eclipse running Jetty on 8080 but I am using Eclipse only for the Java things - not for Dart. For Dart I am using Dart-Editor.

[Update 3]

[Update 4]
Console shows message on clicks but the breakpoint does not stop the program at line 16...


回答1:


Seems like the issue isn't really fixed.

As a workaround, you can serve the page at the same URL the "normal" launch would have (the "HTML file" field in the run configuration) In your case, this would be http://localhost:8080/JRelais.Server.REST/WebContent/samplewebappohnewebui.html‌​

I also filed a new bug report addressing this problem, as I don't think the old one will ever be reopened.



来源:https://stackoverflow.com/questions/16358773/debugging-a-dart-webapp-with-launch-target-url-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!