@lynker-desktop/devtron
v0.0.0-alpha.9
Published
Electron DevTools Extension to track IPC events
Maintainers
Readme
Devtron
[!NOTE] This project is under development and subject to change.
Building and Development
- Clone the repository to your local machine
- Run
npm installto install dependencies - Run
npm linkto link the package globally - Run
npm run buildto build the project
Configuring an Electron App to use Devtron
- In your Electron app run
npm link @electron/devtronto link the Devtron package - In your Electron app's
main.js(or other relevant file) add the following code to load Devtron:
// main.js
const { devtron } = require('@electron/devtron')
const { monitorMain } = require('@electron/devtron/monitorMain')
monitorMain()
// 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.js
const { monitorRenderer } = require('@electron/devtron/monitorRenderer')
monitorRenderer()If Devtron is installed correctly, it should appear as a tab in the Developer Tools of your Electron app.

