Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
electron_main.js
index.html
package-lock.json
package.json

README.md

Quickstart for debugging an Electron + Lambda app using Rookout

A sample application for debugging an Electron app using Rookout

Before following this guide we recommend reading the basic Node + Rookout guide

Rookout Integration Explained

There are 4 simple steps to integrate Rookout into your existing Node-Electron application:

  1. Adding the Rookout SDK to package.json available on npm:

    $ npm install --save rookout --runtime=electron --target=4.0.1

    IMPORTANT:: replace ELECTRON_VERSION_HERE with your electron version

  2. Export Organization Token:

    $ export ROOKOUT_TOKEN=<Your-Token>
  3. Adding a require statement to the project entry file:

    const rook = require("rookout/auto_start");
  4. Update the command line for electron to contain --inspect, In the package.json:

    "scripts": {
    "start": "electron . --inspect" 
    },
    
  5. Build your electron application

FAQ

In case of an error like this:

Error: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: electron-v1.8-win32-x64-unknown
Found: [node-v59-win32-x64-unknown]

simply delete grpc folder inside the node_modules, and run:

$ npm install --save rookout --runtime=electron --target=4.0.1
You can’t perform that action at this time.