debug

debug();

The debug method of the Exception class displays a modal window containing your current stack and the source of your current method, with the current line highlighted. Use this window to display the contents of variables, if required.

An exception is raised if this method is invoked from a server method.

For details, see "Debugging the Method Call Stack", in Chapter 3 of the Developer's Reference.