Html/Javascript debugging in JavaFX WebView

后端 未结 4 1498
无人共我
无人共我 2020-11-28 04:53

Are there any ways to debug javascript and html that is executed within a Javafx WebView? Something similar to Firebug or Chrome\'s developer console?

I have an app

4条回答
  •  没有蜡笔的小新
    2020-11-28 05:47

    I am debugging JavaFx WebView with chrome DevTools and safari Web Inspector.

    I created minimal project to help people debug with DevTools. Get it on GitHub. You can find there:

    1. runnable javaFXWebKitDebugger.jar
    2. source code of created javaFXWebKitDebugger.jar

    The sample opens WebView and enables WebSocket Servlet. When you run javaFXWebKitDebugger.jar open Chrome browser and load: dev tools url

提交回复
热议问题