| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Adds useful debug features to your Electron app
Ideas for more debug features welcome!
Toggle DevTools.
Force reload the window.
Devtron is the official Electron DevTools extension.
Just install it in your app and we'll activate it for you.
$ npm install --save-dev devtron
$ npm install --save electron-debug
const {app, BrowserWindow} = require('electron');
require('electron-debug')({showDevTools: true});
let win;
app.on('ready', () => {
win = new BrowserWindow();
});Only runs when in development, unless overridden by the enabled option. So no need to guard it for production.
Install keyboard shortcuts and optionally activate DevTools on each created BrowserWindow.
Type: boolean
Type: boolean string
Default: false
Values: 'right' 'bottom' 'undocked' false true (last dock state)
Show DevTools on each created BrowserWindow.
Toggle DevTools for the specified BrowserWindow instance or the focused one.
Type: BrowserWindow
Default: the focused BrowserWindow
Reload the specified BrowserWindow instance or the focused one.
Type: BrowserWindow
Default: the focused BrowserWindow
Open DevTools for the specified BrowserWindow instance or the focused one.
Type: BrowserWindow
Default: the focused BrowserWindow
Type: boolean string
Default: false
Values: 'right' 'bottom' 'undocked' false true (last dock state)
Show DevTools on each created BrowserWindow.
MIT © Sindre Sorhus
| Back | FazBrowse Home | New Git URL |