Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > System generation for simulation - C, C++ and Java code > System simulation > Working with breakpoints (C++ code applications only) > Adding a breakpoint (system simulation)
  
Adding a breakpoint (system simulation)
1. Locate the State Diagram item for which you want to add a breakpoint in a Modeler pane, a State Diagram or an instance diagram.
Note that Modeler creates instance diagrams to animate a simulation. You can add breakpoints while a simulation is running.
2. Right-click the item, point to Breakpoints, and then click Break, Break on Entry or Break on Exit as appropriate.
If the Breakpoints submenu does not appear on the context menu, you cannot add breakpoints to that item type, or the C++ or Java Profile is not present in the model.
After adding a breakpoint to an item, a breakpoint symbol appears on or near to its item's symbol on State Diagrams and instance diagrams. The following notation is used:
Break
On Entry Breakpoint
On Exit Breakpoint