Is there a way to print to the screen, the contents of a variable? I'm want to use that to debug the script.
For example, the script GenUserInTeam
Thanks,
Bill
Solved! Go to Solution.
Solved by broepke. Go to Solution.
There sure is.... in the debugging page on help you'll find this:
Tip: For more sophisticated debugging of your scripts, you can use the print() and println() functions.
the second one puts a line break after each print statement - so if you print more than one variable to the screen it helps with readability.
Thanks Brian. That bit of information took me from wondering what the issue is to identifying the issue and fixing it - in five minutes.
Over the course of several weeks I have spent portions of various days trying to figure out the issue, with no success.
So, this little bit of information would be very helpful to those of us who are novice scriptors.
Thanks,
Bill Bogan
It's a great tip and invaluable in getting a script to work.
Over time we'll probably see additional debugging tools as well.
From another relative scripting newbie, a cautionary tale....
Remember that println is case sensitive - writing it with a Capital 'P' means it doesn't work - I caused myself much confusion with that!
I'm sure no-one else would make the same elementary mistake...!
Fiona