Breakpoints allow you to pause the execution of a program and step through the code line by line.
Toggle Breakpoint switches breakpoints on and off. When no breakpoint exists, Toggle Breakpoint adds a break; if a breakpoint already exists at the cursor position, Toggle Breakpoint removes it.
When program execution reaches the breakpoint, Visual LISP interrupts execution and displays the code in the text editor window.
Begin by entering some debugging information in the Visual LISP text editor window containing the yinyang.lsp program.
(setq half-r (/ radius 2))
The following screen snapshot indicates the position of this statement within the program:
Toggle Breakpoint switches breakpoints on and off. When no breakpoint exists, Toggle Breakpoint adds a break; if a breakpoint already exists at the cursor position, Toggle Breakpoint removes it.
(yinyang)
After you reply to the prompts the program displays at the AutoCAD Command prompt, Visual LISP pauses execution at the breakpoint you set and displays the code in the text editor window:
Note how the statement following the cursor is highlighted.