Exceptions

Breakpoints


InstallBreakpoint(codeBlock, programCounter);


This routine sets a breakpoint within the function specified by codeBlock. When this function is run and execution reaches the bytecode offset specified by programCounter, a break loop is entered.

InstallBreakpoint returns a breakpoint specification, which can then be used to remove a breakpoint.


GetAllBreakpoints();


This returns a frame with a programCounter slot. That slot contains an array of breakpoint specifications.


RemoveBreakpoint(spec);


This uninstalls the breakpoint whose breakpoint specification is spec.


RemoveAllBreakpoints();


This removes all installed breakpoints.


GloballyEnableBreakpoints(enable);


If enable is true, this turns on breakpoint checking. It is the same as turning on "Enable breakpoints" in ns Debug Tools. A setting of nil for enable turns off breakpoint checking.


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996