Skip to content

Instantly share code, notes, and snippets.

View cgbeutler's full-sized avatar

Cory Beutler cgbeutler

View GitHub Profile
@hlecuanda
hlecuanda / GAS-Trigger-TestingFunction.gs
Created August 19, 2015 08:32
A pattern to debug google apps script (GAS) triggered functions.
/**
* Test function for onEdit. Passes an event object to simulate an edit to
* a cell in a spreadsheet.
*
* Check for updates: http://stackoverflow.com/a/16089067/1677912
*
* See https://developers.google.com/apps-script/guides/triggers/events#google_sheets_events
*
* on Script editor, set to debug THIS function, but create breakpoints
* on the onEdit Function