Is there a way to run com.intellij.ide.browsers.JavaScriptDebuggerStarter with JBCefBrowser?

Answered

Hello!

Could you please guide me on the following question:

I would like to connect javascript debugger with JBCefBrowser opened inside IDE, is there a way to do it?

As I can see, JavaScriptDebuggerStarter depends on the WebBrowser, which in turn depends on the specific BrowserFamily. Is it possible to consider JBCef as a google-chrome browser family?

4 comments
Comment actions Permalink

Hello! What exactly are you trying to achieve? You don't need to use JavaScriptDebuggerStarter to connect to a browser. You may use https://www.jetbrains.com/help/webstorm/run-debug-configuration-node-js-remote-debug.html to connect, you need to know host and port for it. 

0
Comment actions Permalink

If I understand correctly, then a Google Chrome application window opens and WebStorm breakpoints triggers on event from that browser.

So I would like to do the same but instead of separate instance of Google Chrome application I would prefer JBCefBrowser embedded into WebStorm, so that when the application page loads inside JBCefBrowser WebStorm breakpoints will trigger on that events. 

0
Comment actions Permalink

I see, thanks. To answer your question, no, it's not possible now to use JavaScriptDebuggerStarter with JBCefBrowser. A more low-level solution is needed now, which AFAIU will start JBCefBrowser with debugging port opened, and connect to it with com.jetbrains.debugger.wip.WipRemoteVmConnection. Hopefully, we'll add similar functionality to WebStorm some day.

1
Comment actions Permalink

Thank you for your time)

0

Please sign in to leave a comment.