Printing a Breakpoint Message

See Also

The Print Text property of a breakpoint specifies the text to print in the Debugger Console tab of the Output window when the breakpoint is reached. You can set this property in the New Breakpoint dialog box or in the breakpoint's property sheet.

For Java breakpoints, the Print Text property can contain seven standard tags and a special notation for printing the value of an expression, (for example, {$i + j}). The value of all tags are evaluated within the current context. Some tags can be used for specific breakpoint types only, and some tags have different meanings in different situations.

The following table lists the tags and the breakpoint types. A plus sign (+) or text in a cell indicates that you can use the tag for that breakpoint type. A minus sign (-) indicates that the tag does not apply to that breakpoint type.

Breakpoint Type
Tag Line Method Exception Thread Class Variable
{className} + + + - + +
{lineNumber} + + + - + +
{methodName} + + + - + +
{threadName} + + + + + +
{variableValue} - - The value of the exception - - The value of the variable
{variableType} - - The name of the exception - - The type of the variable
{action} - - - - Prepared or Unload Modification or Access
{$"expression"} + + - - - +
See Also
Setting a Line Breakpoint
Setting a Method Breakpoint
Setting an Exception Breakpoint
Setting a Class Breakpoint
Setting a Thread Breakpoint
Setting a Variable Breakpoint

Legal notices