We use cookies to ensure that we give you the best user experience on our website. If you want to find out more about the cookies we use, you can access to our Privacy Policy here. By continuing your visit to our website, we'll assume you consent to our use of cookies.



Technical Information

5.Executing and Debugging Programs

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

  1. 1. Holding down the SF and 1 keys and turning on the power displays the system menu.
  2. 2. Choose "EXECUTE PROGRAM."
    Note that the menu and item numbers depend on the BHT model.
  3. 3. 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.

Contact us


If you have not registered

The services on this member site are available only for registered customers.

New member reg.