Use size, whos and which to check on
variables (or selectively remove semi-colons from commands so that
output isn't supressed).
Be careful when choosing variable names
i begins with the value sqrt(-1) but
typing i=7 will change its value.
If you give a variable the same name as a function odd things
can happen. E.g. the following causes an error on the last line
A=3
size(A)
size = 1
size(A)
The keyboard command stops function/script execution so you can examine and
change values. To continue, type RETURN.
Sometimes the error in your program triggers an error message from a
function that your program directly or indirectly calls.
Use depfun to see the dependent functions.
On some systems a Debugger is available as an item on the menu bar.