Quickstart for debugging a google cloud function + NodeJS using Rookout
A sample application for debugging a google cloud function + NodeJS using Rookout
Before following this guide we recommend reading the basic Node + Rookout guide
Rookout Integration Explained
To integrate Rookout into your google function, follow these steps:
- Edit the package.json and add Rookout as project dependency
- Set your Rookout Token as the ROOKOUT_TOKEN environment variable
- Call to rook start function in the beginning of your index.js file:
const rook = require('rookout'); rook.start();
- Go to app.rookout.com and start debugging !
We recommend to increase the memory of the function to 1GB due to low CPU resources with lower memory allocation.