• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code GMS2: Functions not in documentation

B

Big_Macca_101

Guest
I was typing in 'debug' and noticed 2 functions...

debug_get_callstack();
debug_event(string);

Have these functions been implemented, if so, what do they do or are they just reserved just like #region and #endregion macro's?
 

rwkay

YoYo Games Staff
YYG Staff
debug_get_callstack() was added relatively recently and has just not been documented - it should return the current GML call stack as a string so you can log it.
debug_event(string) has been in for a while and we use it internally to help debug the engine from GML calls - but it will be useful to everyone soon, and documented as it is part of the upcoming 2.1 update

debug_mode already appears to be documented - http://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/debugging/debug_mode.html

Russell
 
B

Big_Macca_101

Guest
debug_get_callstack() was added relatively recently and has just not been documented - it should return the current GML call stack as a string so you can log it.
debug_event(string) has been in for a while and we use it internally to help debug the engine from GML calls - but it will be useful to everyone soon, and documented as it is part of the upcoming 2.1 update

debug_mode already appears to be documented - http://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/debugging/debug_mode.html

Russell
Awesome!

Thanks for the quick reply!
 
Top