Original Author Paul Laughton, 2011
Page 95
De Re BASIC!
Note: the debugger does not stop on a function call. The first line of the function is executed and the
marker points to that line. When a Fn.rtn or Fn.end executes, the marker points to the function call.
For a description of the dialog box controls, see the Debug.show command, below.
Debug.show
Pauses the execution of the program and displays a dialog box. The dialog box will contain the result of
the last Debug.show.<command> used or by default Debug.show.program.
There are three buttons in the dialog:
Resume: Resumes execution.
Step: Executes the next line while continuing to display the dialog box.
View Swap: Opens a new dialog that allows you to choose a different Debug View.
The BACK key closes the debug dialog and stops your program.
Fonts
Your program can use fonts loaded from files.
At present, the only way to use a loaded font is with the Gr.Text.SetFont command.
Font.load <font_ptr_nvar>, <filename_sexp>
Loads a font from the file named by the <filename_sexp>. Returns a pointer to the font in the variable
<font_ptr_nvar>. This pointer can be used to refer to the loaded font, for example, in a Gr.Text.SetFont
command.
If the font file can not be loaded, the pointer will be set to -1. You can call the GETERROR$() function to
get an error message.
Font.delete {<font_ptr_nexp>}
Deletes the previously loaded font specified by the font pointer parameter <font_ptr_nexp>. Any
variable that points to the deleted font becomes an invalid font pointer. An attempt to use the deleted
font is an error. It is not an error to delete the same font again.
If the font pointer is omitted, the command deletes the most-recently loaded font that has not already
been deleted. Repeating this operation deletes loaded fonts in last-to-first order. It is not an error to do
this when there are no fonts loaded.
Font.clear
Clears the font list, deleting all previously loaded fonts. Any variable that points to a font becomes an
invalid font pointer. An attempt to use any of the deleted fonts is an error.