Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3055

JavaFX WebView.impl_getDebugger() was removed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Works for Me
    • Affects Version/s: Next, 11.1, 11.2
    • Fix Version/s: 12.2
    • Component/s: javascript - Debugger
    • Labels:
    • Environment:

      java 9+

    • Docs Text:
      Hide
      https://docs.oracle.com/javase/8/javafx/api/deprecated-list.html

      javafx.scene.web.WebEngine.impl_getDebugger()
      This is an internal API that can be changed or removed in the future.
      Show
      https://docs.oracle.com/javase/8/javafx/api/deprecated-list.html javafx.scene.web.WebEngine.impl_getDebugger() This is an internal API that can be changed or removed in the future.

      Description

       [repeat] .../netbeans/ide/core.browser.webview/src/org/netbeans/core/browser/webview/ext/WebKitDebuggingTransport.java:68: error: cannot find symbol
       [repeat] this.debugger = browserImpl.getEngine().impl_getDebugger();
       [repeat] ^
       [repeat] symbol: method impl_getDebugger()
       [repeat] location: class WebEngine

       

      There is suggested workaround but does not work for me:

      https://github.com/mohamnag/javafx_webview_debugger/issues/6

       

      Class webEngineClazz = browserImpl.getClass();
       Field debuggerField = webEngineClazz.getDeclaredField("debugger");
       debuggerField.setAccessible(true);
       this.debugger = (Debugger) debuggerField.get(browserImpl.getEngine());

      Debugger field does not exist here anymore

       

       

        Attachments

        1. fix-private-debugger-access.patch
          2 kB
          Miroslav Šulc

          Activity

            People

            • Assignee:
              vitex Vítězslav Dvořák
              Reporter:
              vitex Vítězslav Dvořák
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: