TRACE_ON

TRACE_ON F

STARTS THE MODE TRACE AND CREATES THE TEXT FILE F

  • Type: Command
  • Parameter: 1
  • Group: Reference

ACTION

The command TRACE_ON F starts the mode trace and creates the tracing file F.

The file F is a text file.

If the file does not exist, it is created, otherwise the existing file is replaced by the new one.

In The file, the date, the time and the number of the executed line are written.

Every error is also written: number and error type.

The file is closed when:

- an error happens and no ON_ERROR_GOTO has been executed

- the last line of the source has been executed (in the case there is no END).

SYNTAX: TRACE_ON F

  • F = absolute or relative name of the text file.

USE

  • The command TRACE_ON is used to start the mode trace.

ERROR

  • If F is not a correct name of file.

EXAMPLE

dim a%,b%

trace_on "test.txt"

a%=1

b%=1

trace_off

a%=2

end

SEE ALSO

TRACE_OFF