Search code examples
dartremote-debugging

Debugging a Dart WebApp with Launch target "URL" fails


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]
SS Eclipse 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]
enter image description here

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

enter image description here


Solution

  • 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.