Specifying a Tracepoint

Define a custom action for a breakpoint.

A tracepoint enables you to associate a custom action with a breakpoint, without having to modify your code. The breakpoint can either break or continue execution after the tracepoint action.

To specify a tracepoint action for a breakpoint:

  1. Open the Breakpoint Condition dialog box:
    • In the Breakpoints window, right-click a breakpoint and select When Hit.
    • In the Script window or Call Stack window, right-click a breakpoint and select Breakpoint > When Hit.
  2. Select Print a message. Accept the default message or create your own message.
    To include programmatic information in your tracepoint, use the syntax keywords described in the dialog box.
    In function '{$FUNCTION}', on thread '{$TID}'
    Used variable: {varName}, function name: {functionName($FUNCTION)}
    
    Run a macro is disabled in the Breakpoint Condition dialog box; PowerBuilder does not support running a Visual Studio automation model macro.
  3. Specify whether to continue execution (default) or not.
  4. Click OK.