Debugging a Dart WebApp with Launch target “URL” f

2019-07-25 01:56发布

问题:

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.