Debug Object

Purpose

This object is used to debug a program.

Syntax

Debug

Description

The Debug object sends output to the debug output window at run time.

Properties

BackColor | ForeColor | Left | Top | Height | Width | hWnd | OnTop | Visible

Methods

Assert | Clear | Hide | Print | Show | Trace

Example

Dim i As Int = 9

Debug.Show

Debug.OnTop = True

Debug "A debug message"

Debug.Trace i

Debug.Assert i > 10 ' This comment is displayed in the message box!

Remarks

By default the Debug commands will be ignored by the compiler. However, optionally, these commands may be kept in an executable (EXE) by setting the appropriate option in the compiler tab of the GFA-BASIC 32 Properties dialog box.

Debug is a shortcut for Debug.Print and can be used instead.

See Also

Assert, Trace, CallTree, HexDump.

{Created by Sjouke Hamstra; Last updated: 09/05/2020 by James Gaite}