is it possible to get stack trace in cloud code? I mean I have function and in its body I'd like to do something with stack trace string (like write part of it to some collection).
As I've seen, usually in js theres new Error().stack but in GS cloud code I dont have that kind of possibility.
Best Answer
C
Customer Support
said
about 5 years ago
Hi Marcin,
You can achieve this with Spark.currentStack() in Cloud Code. Please try that and let me know if it suits your needs.
Marcin Olszewski
Hi,
is it possible to get stack trace in cloud code? I mean I have function and in its body I'd like to do something with stack trace string (like write part of it to some collection).
As I've seen, usually in js theres new Error().stack but in GS cloud code I dont have that kind of possibility.
Hi Marcin,
You can achieve this with Spark.currentStack() in Cloud Code. Please try that and let me know if it suits your needs.
Regards,
Liam
- Oldest First
- Popular
- Newest First
Sorted by PopularCustomer Support
Hi Marcin,
It's there it's just undocumented at the moment. We'll look into getting it added in a future update.
Regards,
Liam
1 person likes this
Customer Support
Hi Marcin,
You can achieve this with Spark.currentStack() in Cloud Code. Please try that and let me know if it suits your needs.
Regards,
Liam
1 person likes this
Dylan Hunt
Heya, just a 12 month follow up -- it's still not in intellisense or documented. Just letting you know :)
Marcin Olszewski
Btw, I dont see this in documentation - is it something new?
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics