Function AltD() Foundation

Command the Debugger to set a breakpoint

Syntax
AltD() --> NIL
Description

The function AltD() commands the debugger to set a breakpoint to the current line if the program is started using the Xbase++ Debugger. AltD() has no effect if IsDebug() returns .F.

Breakpoints are normally set during a debugging session manually. Breakpoints are identified by the name of the .PRG file and the line number. If the source code was changed, a previously set breakpoint might point to a different code line or may not be set because the line it points to does not contain any code (but, for instance, comments). By contrast, using AltD() sets the breakpoint no matter how many changes have been made to the source code since the last debugging session.

Examples
AltD()
// This sample shows how to use AltD() 
// to always stop the debugger at a certain code line. 

PROCEDURE Main 
    Func1() 
RETURN 

FUNCTION Func1(x)      // always need to check the passed parameter 
     Altd()            // debugger will halt here 
     IF x = NIL 
        x := "Hi" 
     ENDIF 
RETURN x 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.