Use the following code to display the x++ stack track through the InfoLog in Dynamics AX:
info(con2str(xSession::xppCallStack()));