Macro Language Reference > PIs > Text > <?breakpoint>
  
<?breakpoint>
Description
The <?breakpoint> command can be used when debugging a text stream. When placed in a text stream being processed during a debugged format operation, the command will cause the debugger to stop on the _next_ token. This syntax can be used in the case where you want to assert that formatting should not get to a particular point and if it does you want formatting to stop, or the system to inform you for investigation purposes.
Syntax
<?breakpoint '+'
<?breakpoint>
[no parameter]
Stop the debugger on the _next_ token.
 
The debugger does not stop on the <?breakpoint> token itself because tagdebug sees tokens before they are run. Therefore once tagdebug has processed the <?breakpoint> token and seen that it has to stop its only option is to stop on the _next_ token.
+
Pop up the tagdebug window if is not already open. It may also be useful to combine this PI syntax with the <?^COND PI> syntax to enable the use of a conditional assert statement in this situation, e.g. <?^(x(22)==42) ?breakpoint +>. This would cause the debugger window to pop up if the value of the x(22) counter was 42.
Related Links