I wrote a new class. I would like to view the class properties while the constructor is running.
However, the apps script debugger does not show the object's properties until after the constructor finishes running. I put a breakpoint in the constructor, and the debugger shows the parameters passed in, but not object properties.
Is there any way for me to see the properties in the debugger while the constructor is running?
Here's a sample function:
class testClass {
constructor (a) {
this.x=a
this.y=a^2
}
}
function myFunction() {
let myTestClass=new testClass(3)
Logger.log(myTestClass)
}
If I put a breakpoint in the constructor, I cannot view x or y in the debugger.