The following example needs to be updated:
Class webEngineClazz = WebEngine.class;
Field debuggerField = webEngineClazz.getDeclaredField("debugger");
debuggerField.setAccessible(true);
Debugger debugger = (Debugger) debuggerField.get(webView.getEngine());
DevToolsDebuggerServer devToolsDebuggerServer.startDebugServer(debugger, 51742, 1);
To:
Class webEngineClazz = WebEngine.class;
Field debuggerField = webEngineClazz.getDeclaredField("debugger");
debuggerField.setAccessible(true);
Debugger debugger = (Debugger) debuggerField.get(webView.getEngine());
DevToolsDebuggerServer bridge = new DevToolsDebuggerServer(debugger, WEBVIEW_DEBUG_PORT, 0, null, null);
Using this class is not well documented, and just something I've used from the previous repo this was based upon.
When using the new class DevToolsJsBridge, as shown in the example, there's no way to pass a Debugger instance. The underlying method it uses, .impl_getDebugger(), on WebEngine is not supported in Java 9 (and presumed above).
Would it be possible to allow support to either pass in a Debugger, use reflection to extract the debugger field or check for which method is available (Java 9 seems to have getDebugger()?
Also what is the difference between DevToolsJsBridge and DevToolsDebuggerServer ?
The following example needs to be updated:
To:
Using this class is not well documented, and just something I've used from the previous repo this was based upon.
When using the new class
DevToolsJsBridge, as shown in the example, there's no way to pass aDebuggerinstance. The underlying method it uses,.impl_getDebugger(), onWebEngineis not supported in Java 9 (and presumed above).Would it be possible to allow support to either pass in a
Debugger, use reflection to extract thedebuggerfield or check for which method is available (Java 9 seems to havegetDebugger()?Also what is the difference between
DevToolsJsBridgeandDevToolsDebuggerServer?