Previous Up Next

25.6.1  Starting the debugger

The debug command starts the Xcas debugger.

By default, the value of all variables in the program are in this pane. The buttons are shortcuts for entering commands in the eval box, but you can enter other commands in the eval box to change the values of variables or to run a command in the context of the program.

Example

With the sumprod program:

sumprod(a,b):={ local s,p; s:=a+b; p:=a*b; return [s,p]; }

input:

debug(sumprod(2,3))

which opens the debug window shown in Figure 25.2.


Figure 25.2: The debug window in Xcas

It has the following buttons:


Previous Up Next