Here we run the user application program
on the BHT and debug program operation.
The description of executing and debugging proceeds in the following
order.
Starting Programs
- Holding down the SF and 1 keys and turning on the power displays
the system menu.
- Choose "EXECUTE PROGRAM."
Note that the menu and item numbers depend on the BHT model.
- Select the program to load.
Starting the user application program switches to the program's
screen display.
Debugging on Target Device
This approach checks whether the user application program runs
as intended on the target BHT. A run-time error suspends the
user application program and displays the error address(ERL)
and an error code (ERR).

Use the error address and error code to determine the source
of the error and modify the source code accordingly.
For further
details on run-time error codes, refer to Appendix A1 "Run-time Errors" in
the BHT-BASIC Programming Manual.
The error address is a pseudo-code
address giving the location for the error in the listing file,
compiler output with the file
extension .LST. Finding that line in the listing file gives the
corresponding line number in the original source code file.
For further details, refer to Chapter 2 "Development Environment
and Procedures" in the BHT-BASIC Programming Manual.
Debugging with Remote Debugger
The remote debugger provides single-step (by line) execution,
breakpoints, and other facilities for monitoring the program's
execution status. It also speeds debugging by providing access
to variables used and the stack.
For further details, refer to the Remote Debugger User's Guide.
|