The debugger lets you view and edit the behavior of your variables while stepping through your code. The debugger provides a Debugger Details pane to display the different kinds of variables used in stored procedures. The Debugger Details pane appears at the bottom of Sybase Central when Sybase Central is running in Debug mode.
Set a breakpoint in the procedure whose variables you want to examine.
For information on setting breakpoints, see Setting breakpoints.
Click the Local tab in the Debugger Details pane.
Run the procedure. The variables, along with their values, appear on the Local tab.
Global variables are defined by SQL Anywhere and hold information about the current connection, database, and other settings. They appear on the Globals tab of the Debugger Details pane.
For a list of global variables, see Global variables.
Row variables are used in triggers to hold the values of rows affected by the triggering statement. They appear on the Row tab of the Debugger Details pane.
For more information on triggers, see Introduction to triggers.
Static variables are used in Java classes. They are appear on the Statics tab.
It is useful to examine the sequence of calls that has been made when you are debugging nested procedures. You can view a listing of the procedures on the Call Stack tab.
Set a breakpoint in the procedure whose variables you want to examine.
Run the code to the breakpoint.
Click the Calls Stack tab in the Debugger Details pane.
The names of the procedures appear on the Calls Stack tab. The current procedure is shown at the top of the list. The procedure that called it is immediately below.