Question:
How to use BreakPoint Action in CCES?
Answer:
We can attach one or more breakpoint actions to a single breakpoint. For example, when the breakpoint is reached, we can log a message and play a sound. Actions are executed in the order they appear in the Actions for this breakpoint list.
Please follow the below steps to attach a breakpoint action from a breakpoint:
1.Choose Window > Show View > Breakpoints or click Alt+F9. The Breakpoints view appears.
2. Right-click the targeted breakpoint and select Breakpoints Properties.
The properties dialog box for the selected breakpoint appears.
3. From the tree control, click Actions. The Actions page appears. Please refer the attached screenshot "attach_beakpoint_action.jpg" for reference.
4.In the Available actions pane, we can select an action and click Attach to link it to the breakpoint.
5.Click OK.
After following above steps, the configured breakpoint action is performed when a breakpoint is hit on code while running. Please refer the attached screenshot "console.JPG" for log breakpoint action.
The below CCES help path for more details on Attaching or Removing Breakpoint Actions.
CrossCore® Embedded Studio x.x.x > Integrated Development Environment > Debugging Executable Files > Working with Breakpoints, Watchpoints, and Breakpoint Actions > Attaching or Removing Breakpoint Actions
Also, Please refer the below CCES help path for more details on creating and configuring attributes of breakpoint action.
CrossCore® Embedded Studio x.x.x > Integrated Development Environment > Navigating Within the IDE > Views > Debug > Breakpoints View > Edit Breakpoint Action Dialog Box
CrossCore® Embedded Studio x.x.x > Integrated Development Environment > Debugging Executable Files > Working with Breakpoints, Watchpoints, and Breakpoint Actions > Creating a Breakpoint Action