I have the following Google App Script. Can set breakpoints but they are never hit. I am running in Script editor with Calendar API enabled. It is deployed as an API executable. I have other following but it was removed to make it as simple as possible.
function listCalendars() {
calendars = CalendarApp.getAllCalendars();
}