Prev | Current Page 373 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Stack.callStack() and
haxe.Stack.exceptionStack() , that are available when the - debug compiler switch is enabled.
These clever little functions provide critical information where and when you need it, though they ??™ re
probably not the kind of functions you ??™ d like to leave active in a release version of your applications.
haxe.Stack.callStack()
This function is best used when you absolutely must see what is happening inside your application, but
at a time when an error ??” in the classic meaning of the word ??” is not evident. For example, you may be
trying to trace the journey of a variable value so that you can work out why a particular calculation is
not behaving quite as it should.
While not able to return the value of the variable on its journey, this function can at least list each of the
functions called from the point of entry in the base class to the moment that the callStack() function is
called. Once the journey from the base class returns, the stack is reset for the next called function.


Pages:
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385