Wednesday, April 29, 2009

Getting the stacktrace

Hi,


X++ has this little function built in the class xSession, which gives you the stacktrace. This may come in handy for you in special circumstances (fe together with the infolog of an error).

Syntax:
xSession::xppCallStack()

The function returns a container, so handle accordingly.
If you want to show the current stacktrace:
info(con2str(xSession::xppCallStack()));

Best of luck,


Willy.

No comments:

Post a Comment