Hi there,
I've begun working with CloudScript over the last few days and am discovering that it can be a bit of a black box as far as debugging is concerned. At the moment, I am integrating Photon into our project and am working with the standard Photon webhooks. Long story short, I was executing a method within one of these handlers that was causing execution to halt entirely. I could tell that it was halting because my call to WriteTitleEvent was no longer firing and the event was conspicuously missing from PlayStream.
I've seen that calling the various log methods is the currently recommended approach to debugging in CloudScript, but in situations like the above where execution fails completely, I wasn't able to rely on writing these logs. I was surprised to find that wrapping the offending method call in a try/catch block in an attempt to log the output was also unsuccessful, only when I removed the method entirely did execution resume.
For that matter, even when execution is successful I'm not entirely sure of where to retrieve these logs when it is the Photon webhooks that are calling into the handlers...
In previous forum posts from one and two years ago, I saw mention of advanced CloudScript debugging options to be discussed "in the coming weeks." Has any progress been made on this front? Are there alternative options for testing locally that I might be able to explore? Any help would be greatly appreciated!
Kyle