11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BREAKNote:BREAK 0 is ineffective in <strong>Caché</strong> <strong>ObjectScript</strong> if you issue it after issuing an OPENcommand that specifically enables interrupts.BREAK Extended ArgumentsYou do not have to place argumentless BREAK commands at every location where you wantto suspend your routine. BREAK has a series of "extended" arguments (extend) that canperiodically suspend a routine as if you scattered argumentless BREAKs throughout thecode. BREAK command extended arguments are listed in the following table.Argument"S""S-""S+""L""L-""L+""C""OFF"DescriptionUse BREAK "S" (Single Step) to step through your code a singlecommand at a time, breaking on every <strong>Caché</strong> <strong>ObjectScript</strong> command.The system stops breaking when a DO command, an XECUTEcommand, a FOR loop, or a user-defined function is encountered, andresumes when the command or loop is done.Use BREAK "S-" to disable single stepping at the current level andenable command stepping at the previous level.BREAK "S+" acts like BREAK "S", except that <strong>Caché</strong> continues tobreak on every command, including when a DO command, an XECUTEcommand, a FOR loop, or a user-defined function is encountered.Use BREAK "L" (Line Break) to step through your code a single routineline at a time, breaking at the beginning of every line. The system stopsbreaking when a DO command, an XECUTE command, or user-definedfunction is encountered, and resumes when the command or loop isdone.Use BREAK "L-" to disable single stepping at the current level andenable line stepping at the previous level.BREAK "L+" acts like BREAK "L", except that <strong>Caché</strong> continues tobreak at the beginning of every routine line when a DO command,XECUTE command, or user-defined function is encountered.Use BREAK "C" (Clear Break) to stop breaking. Breaking resumes ata higher routine level after the job executes a QUIT if a BREAK stateis in effect at that higher level.BREAK "OFF" removes all debugging that has been established forthe process. It removes all breakpoints and watchpoints, and turns offstepping at all program stack levels. It also removes the associationwith the debug and trace devices, but does not close them.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!