I am developing an app and need to run a debugger on the WebView/WebEngine part of the application so I can better debug my application. But the code I found across the inte
I found with the JavaFX Webview that the best way of quickly debugging javascript was to do the following:
webView.getEngine().setOnAlert(new EventHandler>() {
@Override
public void handle(WebEvent event) {
System.out.println(event.getData());
}
});
That pipes through all your alert("whatever"); pieces of code so you can see what's going on.