When I open my spreadsheet and choose Extensions > Apps Script, the list shows two script projects. They contain onEdit() simple triggers and onChange() installable triggers.
This is the first script project:
function onEdit(e) {
console.log('onEdit() #1')
}
function onEdit(e) {
console.log('onEdit() #2')
}
function installableOnChange(e) {
console.log('installableOnChange() #1')
}
This is the second script project:
function onEdit(e) {
console.log('onEdit() #3')
}
function onEdit(e) {
console.log('onEdit() #4')
}
function installableOnChange(e) {
console.log('installableOnChange() #2')
}
I have been able to determine which functions run when the built-in "on edit" and installable "on change" triggers fire using console.log, but would like to know how to determine that when writing the code, without requiring as much testing and logging?
In other words, how do I know which copies of these functions will run when the user edits the spreadsheet?