Program Debugging (Correcting Errors) - LEXIBOOK GC500i Instruction Manual

Graphic calculator
Table of Contents

Advertisement

GB
Prog
0
EXE
2
0
EXE
EXE
Operation
Program check
G
G
G
G
Correction
G
G
Deletion
G
G
Insertion
G
G
G

4.3 PROGRAM DEBUGGING (Correcting Errors)

After a program has been created and input, it will sometimes generate error messages when it is executed, or
it will produce unexpected results. This indicates that there is an error somewhere within the program that needs to
be corrected. Such programming errors are referred to as "bugs", while correcting them is called "debugging".
4.3.1 Debugging when an error message is generated
An error message is displayed as follows:
The error message informs the operator of the program area (P0 to P9) in which the error was generated. It also states
the type of error, which gives an idea of the proper countermeasure to be taken.
4.3.2 Error messages
There are a total of seven error messages.
1)
Syn ERROR (Syntax error): Indicates a mistake in the formula or a misuse of program commands.
2)
Ma ERROR (Mathematical error): Indicates the calculation result of a numeric expression exceeds
10100, an illogical operation (e.g. division by zero), or the input of an argument that exceeds the input
range of the function.
3)
Go ERROR (Jump error): Indicate a missing Lbl for the Goto command, or that the program area for
the Prog command does not contain a program.
4)
Ne ERROR (Nesting error): Indicates a subroutine nesting overflow by the Prog command.
5)
Stk ERROR (Stack error): Indicates the calculation performed exceeds the capacity of the stack for
numeric values or for commands.
6)
Mem ERROR (Memory error): Indicates the attempt to use a memory name such as Z[5] without
having expanded memories.
- 52 -
?
692.820323
942.8090416
WRT mode specification
Program area specification (Omitted if P0)
Start verification
Verification of contents
Move the cursor to the position to be corrected
Press correct keys.
Move the cursor to the position to be corrected
Delete
Move the cursor to the position to be inserted into
Specify the insert mode.
Press desired keys.
PO Syn ERROR
Keys used
MODE
2
EXE
EXE
DEL
SHIFT
Ins
Type of error.
Program area where error was
generated.
Copyright L
2002
EXIBOOK

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gc1000i

Table of Contents