Intermec PC43d Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43, PM4 - Page 137
Checking for Programming Errors, Using a TRON|TROFF Statement, Using STOP and CONT Statements
View all Intermec PC43d manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 137 highlights
Chapter 8 - Error Handling Checking for Programming Errors Use these Fingerprint commands to check for possible programming errors: • TRON|TROFF - Trace the execution line by line during execution. • STOP or CONT - Temporarily stop execution, and resume after being stopped. • DBBREAK - Create a breakpoint. • DBSTEP - Create a breakpoint after a specified number of lines are executed. Using a TRON|TROFF Statement If the program does not work as expected, there may be a programming error that prevents the program from being executed in the intended order. Use a TRON (Trace On) statement to trace the execution. When the program is run, each line number is returned on the standard OUT channel in the order of execution. TROFF (Trace Off) disables TRON. Using STOP and CONT Statements Use a STOP statement to temporarily stop execution when examining or changing variables. Program execution can be resumed from where it was stopped using a CONT statement, or from a specified line using a GOTO statement. You cannot use CONT if the program has been edited during the break. Specifying Breakpoints To make it easier to debug a program step by step, you can specify breakpoints in the program. Use a DBBREAK statement to create or delete a breakpoint. Alternatively, you can use the DBSTEP statement to specify how many lines should be executed before next break. At a break, the message "break in line nnn" is sent on the Debug STDOUT port, which can be specified by a DBSTDIO statement. You can resume the execution at next program line using a CONT statement or from the start of the program using a RUN statement. • All breakpoints can be deleted by a single DBBREAK OFF statement. • Using SYSVAR(36) you can choose whether a change of program mode should be printed to the Debug STDOUT port or not. • The statement LIST,B lists all breakpoints to the standard OUT channel. • The statement DBEND terminates the debugger. Fingerprint Developer's Guide 125