问题
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]
[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