0

I'm debugging a Chrome extension that uses Event Pages to set up some periodic notifications.

The problem is that why debugging the background page, Chrome closes its DevTools window out of the blue. at chrome://extensions, I have have to click Inspect views: background page (inactive) again.

Community
  • 1
  • 1
Dan Dascalescu
  • 143,271
  • 52
  • 317
  • 404

1 Answers1

2

From the Event pages docs:

Event Pages are loaded only when they are needed. When the event page is not actively doing something, it is unloaded, freeing memory and other system resources.

To temporarily disable that behavior for debugging purposes, set persistent: true in manifest.json and reload the extension.

Dan Dascalescu
  • 143,271
  • 52
  • 317
  • 404