r/GoogleAppsScript • u/RomanoDesiree • Feb 26 '26
Question Debugging object variable in IDE
Just came back to do some GAS work after a gap of some time.
When debugging objects in the gas editor, right hand panel, just appear as a long list of methods. How can I find out what their actual value is? I can of course print it out but I prefer to avoid that.
primitive types like string, int work ok and I am sure I remember objects being displayed in a helpful way before.
1
Upvotes
View all comments
Show parent comment
1
u/RomanoDesiree Feb 27 '26
Yes I guess that makes sense as I noticed this issue today with Calendar objects.
I feel that there have been other times I where inspecting an object gave some useful insight. Does the class need to have a toString() method or something. Would be good to understand
Calendar class for ref https://developers.google.com/apps-script/reference/calendar/calendar