0

Has anyone tried to debug a webpages rendered in a javafx web view with weinre? Is this possible or is web view lacking the necessary infrastructure?

fbuchinger
  • 4,494
  • 2
  • 30
  • 31

1 Answers1

0

As the Weinre interface to the browser is just JavaScript and JavaScript executes just fine in WebView, WebView has the "necessary infrastructure" to use weinre.

To give an indication of how to execute JavaScript within the context of WebView, you can look at the code I used to debug WebView using the JavaScript based Firebug Lite tool: Html/Javascript debugging in JavaFX WebView. The code is a slightly modified version of the code found in the Firebug Lite bookmarklet. As Weinre also has a bookmarklet which can be used to initiate it, you could perform a similar translation for Weinre as I did for Firebug Lite.

Additionally Weinre is usable by placing a script tag inside the target web page. Take a look at some sample code that I created for embedding the jQuery script library into WebView - you could do the same for the Weinre script library.

I doubt anybody has tried using WebView with Weinre before.

Community
  • 1
  • 1
jewelsea
  • 150,031
  • 14
  • 366
  • 406