Is there a way to run com.intellij.ide.browsers.JavaScriptDebuggerStarter with JBCefBrowser?
已回答
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?
请先登录再写评论。
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.
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.
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.
Thank you for your time)