javascript - Unable to "inspect background page" with nw.js, debugger shows empty screen -


the documentation says "check proxy settings bypassing localhost" doesn't provide context. can hit localhost servers run without problem.

from "https://github.com/nwjs/nw.js/issues/4578" try this:

var thegui = require('nw.gui'); var win = thegui.window.get(); win.on("devtools-opened", function(url) {     document.getelementbyid('devtools').src = url; }); chrome.developerprivate.opendevtools({     renderviewid: -1,     renderprocessid: -1,     extensionid: chrome.runtime.id }); win.showdevtools(); 

my package.json:

{   "name": "quantum pilot",   "version": "0.0.1",   "main": "game.html",   "window" : {     "toolbar": true   },   "chromium-args": "--enable-logging=stderr" } 

when run app, right clicking not give me option "inspect background page".

the debugger shows chrome devtools frontend (??? why hitting remote server???) nothing show

enter image description here

i getting crash after running code bit , want debug why console.

edit

i tried copying sdk build nwjs executable replacing old nwjs executable inside .app package.

i copied on chromedriver, minidump_stackwalk, nwjc , payload nwjs sdk build too.

i crash when run app. https://gist.github.com/quantumproducer/4a03b6abc8e7401a3633824edae62c54


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -