Skip to content
This repository was archived by the owner on Aug 20, 2018. It is now read-only.
This repository was archived by the owner on Aug 20, 2018. It is now read-only.

Another JavaFX WebView debugger implementation #7

@vsch

Description

@vsch

@mohamnag, I thought you might like a full featured implementation of Chrome Dev Tools web-socket server that was inspired by your code, for which I am grateful. I spent two years working with logs for JavaScript debugging in WebView and had enough of that.

I needed a debugger and started with your code but could not get the jetty library to work in an IntelliJ plugin. Rewrote the implementation for https://github.com/TooTallNate/Java-WebSocket.

I was not satisfied with lack of real console or other Chrome Dev Tools features. I implemented fully functioning console and commandLineAPI using some JavaScript, Java and a proxy to compensate for WebViews missing implementation.

It does require a bit more code to get into WebView but not much considering you get full featured Chrome Dev Tools debugging. Including one click navigation to source from the console log.

Take a look at the Web View Debug Sample application for a working example. You can play with it and debug the embedded scripts before deciding whether you want to instrument your own application for Chrome Dev Tools debugging.

main-screen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions