You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is under development and subject to change.
Building and Development
Clone the repository to your local machine
Run npm install to install dependencies
Run npm link to link the package globally
Run npm run build to build the project
Configuring an Electron App to use Devtron
In your Electron app run npm link @electron/devtron to link the Devtron package
In your Electron app's main.js (or other relevant file) add the following code to load Devtron:
// main.jsconst{ devtron }=require('@electron/devtron');// or import { devtron } from '@electron/devtron'// function createWindow() {...}app.whenReady().then(()=>{devtron.install();// ...});
In your Electron app's preload.js (or other relevant file) add the following code to load Devtron:
// preload.jsconst{ monitorRenderer }=require('@electron/devtron/monitorRenderer');// or import { monitorRenderer } from '@electron/devtron/monitorRenderer'monitorRenderer();
If Devtron is installed correctly, it should appear as a tab in the Developer Tools of your Electron app.