question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

showDevTools for background page

See original GitHub issue

Is it possible to open development tools for background page (application has no windows)? I thought it might be something like

// in bg context
nw.Window.get().showDevTools();

But it crashes (#4368), however @rogerwang mentioned that although background page has no corresponding window, call to nw.Window.get() inside it’s context should not crash. Am I missing something?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

18reactions
applebyacommented, May 31, 2016

@offshore I found an interim solution here: https://github.com/nwjs/nw.js/issues/4881 . Works for me 😃

chrome.developerPrivate.openDevTools({
    renderViewId: -1,
    renderProcessId: -1,
    extensionId: chrome.runtime.id
})
1reaction
quantumproducercommented, Sep 10, 2017

Is there a solution to this? I still have this issue of unable to see the inspect background option

https://stackoverflow.com/questions/46142812/unable-to-inspect-background-page-with-nw-js-debugger-shows-empty-screen

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debug background services - Chrome Developers
The Background Services section of Chrome DevTools is a collection of tools for the JavaScript APIs that enables your website to send and ......
Read more >
Is there any way to see the developer console for a ...
The key is to open the extension popup as a tab and inspect that, then open the "background page" inspector from the Extensions...
Read more >
Debug background services - Microsoft Edge Development
The Background Sync page opens. The Background Sync pane. Click Record ( Record. ). After triggering some Background Sync activity, DevTools ...
Read more >
Debugging with DevTools - NW.js Documentation
To debug Node.js modules, you can right click the app and choose “Inspect Background Page”. When stepping into Node.js modules in the debugger,...
Read more >
How to change background Color on the Intro to Chrome ...
... -to-chrome-devtools. I tried to use the Dev Tools to change the Background of this Page. For that i selected the main part...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found