Set Break Command

This command sets a breakpoint in a procedure. It is only used during debugging. A breakpoint is hidden internal mark on a procedure step that causes thread execution to pause when it is encountered. The thread can then be resumed using a Continue command, or debugged with a Step command. Set Nobreak removes a breakpoint.

Set Break project_name “file_name” line_number

Prerequisites

The project must be loaded into memory and compiled.

Parameters

project_name

The project that contains the procedure where the breakpoint is to be set.

file_name

A quoted string specifying the name of the file that contains the procedure where the breakpoint is to be set.

line_number

The number of the line within the file that contains the procedure instruction where the breakpoint is to be set.

Remarks

The specified instruction must be within a procedure. If the specified instruction is a blank line or comment, the breakpoint is set on the first executable instruction following the one specified.

You cannot set more than one breakpoint on a single instruction. A maximum of 32 breakpoints can be defined at one time.

You may set breakpoints in procedures that are actively executing. All threads that encounter the instruction will pause immediately.

Examples

Set Break My_project “Testfile.gpl” 30

See Also

Console Commands | Set Nobreak Command | Show Break Command