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 customizer.
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 values 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.
Tag | Breakpoint Type | |||||
---|---|---|---|---|---|---|
Line | Method | Exception | Thread | Class | Field | |
{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 field |
{action} | - | - | - | - | Prepared or Unload | Modification or Access |
{="expression"} | + | + | - | - | - | + |