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

JavaFX WebView.impl_getDebugger() was removed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Works for Me
    • Next, 11.1, 11.2
    • 12.2
    • javascript - Debugger
    • java 9+

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: