Start Chrome Dev Tools in JavaFX WebVIew

2,741 views
Skip to first unread message

Georgios Papageorgiou

unread,
Nov 28, 2014, 1:06:07 PM11/28/14
to chromium...@chromium.org
Hello,

I have a JavaFX browser and I want to open chrome developer tools for debugging the web pages I load. I downloaded the source code of dev tools extension for Mozilla firefox as an xpi file. I renamed it from xpi to zip and extracted the files, so now I can see everything in the folder. Which function I have to execute and of which .js file to start using dev tools in my browser ?
Thanks in advance
George

Christian Biesinger

unread,
Dec 1, 2014, 8:00:16 PM12/1/14
to g.d.papa...@gmail.com, Chromium-discuss
Hi Georgios,

Unfortunately, this approach is not going to work. Using the Firefox
developer tools in a Chromium browser is *definitely* not going to
work because they need access to Firefox-specific APIs. I don't think
the Chrome ones are going to work either because they would need
access to special APIs.

You may want to look into JavaFX documentation if they offer something
comparable to https://developer.chrome.com/devtools/docs/remote-debugging

-christian
> --
> --
> Chromium Discussion mailing list: chromium...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-discuss
>

Emanuele Ziglioli

unread,
Jun 30, 2015, 10:31:26 PM6/30/15
to chromium...@chromium.org, g.d.papa...@gmail.com
Th JavaFX Webview is an instance of Safari. "Firebug Lite" works with its own limitations. For example you can't set javascript breakpoints.
If you're still using the JavaFX Webview I would suggest you to look into DukeScript. It offers powetful java to javascript databinding.

Vladimir Schneider

unread,
Mar 4, 2018, 1:44:44 AM3/4/18
to Chromium-discuss
Late but maybe others can find it. I had the same issue and found a limited solution to hooking up JavaFX WebView to Google Chrome Dev Tools. Not satisfied with the limitations I added Java and JavaScript code to help WebView out.

Just released a full featured JavaFX WebView to Chrome Dev Tools MIT licensed library JavaFx WebView Debugger and a working sample application Web View Debug Sample to show how to make it work in your implementation.

I was doing log based script debugging in WebView for two years. It is slow and tedious. Having a real debugger, console log with one click navigation to source and commandLineAPI makes working with JavaScript in WebView a joy.

main-screen

Reply all
Reply to author
Forward
0 new messages