mozilla / qbrt

CLI to a Gecko desktop app runtime
Apache License 2.0
390 stars 31 forks source link

Can't open devtools #155

Open 1j01 opened 6 years ago

1j01 commented 6 years ago

With the shell example (code copied and pasted manually), pressing Ctrl+Shift+I I get a blank window (or two - I'm guessing that's a race condition, triggering opening the devtools before they finish opening), with the following output in the terminal:

console.error: "Exception while loading the toolbox" ({error:"forbidden", message:"Window with outerWindowID '8' is chrome", from:"root"})

Also the main window is blank, so maybe I've copied something wrong - or maybe the nightly version of Firefox/Gecko doesn't work anymore! - it's hard for me to tell.

mykmelez commented 6 years ago

Hmm, which OS are you running on, and what command are you using to run your app? I can't reproduce on macOS, neither with my local clone (npm install && npm start run examples/hello-world-html/) nor with a global install from npmjs.com (npm install -i qbrt && qbrt run path/to/example/app/).

In any case, I'm not sure I would expect the keyboard shortcut to work, but the example app should open devtools automatically on startup, as it calls Runtime.openDevTools(window);, which should open a devtools window. That was broken on Nightlies for a while, but I fixed it a few weeks ago (and with version 0.2.5, which I published to npmjs.com), so it should work now.