I am taking the first steps using the Google Docs Add-On dev, and I just can't debug the code.
I set a breakpoint in the Script editor window, but when I test the add-in in Google Docs, it will not stop at the breakpoint.
This is the code I'm trying to break:
$(function() {
$('#checkDoc').click(performCheck);
});
I know that the code has been executed, but the debugger will not stop there.
What am I missing?
Thanks!
EDIT
Looks like I had to select the function to run in the Script editor, and then I could debug it. However, I still cannot find a way to associate the debugger with the user interface, that is - I want to click a button in the add-in and stop the debugger.
How can I do that?
ml123 source
share