lang • debug

DEBUG

DEBUG Expression [ { ; | ;; | , } Expression ... ] [ { ; | ;; | , } ]

Prints expressions to the standard error output, only if your program is compiled with debugging informations.

The location of the DEBUG line code is printed before anything else.

The expressions are converted to strings by the Str$ function.

Example

Public Sub Form_Open()
  Dim a As Float

  a = 45 / 180 * Pi
  Debug "at 45 degrees the sine value is ", Format$(a, "0.####")
End
FMain.Form_Open.11: at 45 degrees the sine value is     0.7854

See also