It is possible to collect an execution history of the program only when some conditions are met.
In cases where a point trace event is set, when and only when a specified access is made to any variable or I/O register, information on that is collected as trace data.
Follow the procedure described below to set a point trace event.
Also see "2.17.7 Points to note regarding event setting" for details on trace settings, including the allowable number of valid events. |
[Simulator] |
Accesses by DMAC (Direct Memory Access Controller) and DTC (Data Transfer Controller) are not supported. |
[Simulator] |
When a point trace event and trace start and end events are specified together, the operation differs depending on the debug tool used. |
[E1] [E20] [EZ Emulator] |
[Simulator] |
Perform this operation in the Editor panel/Disassemble panel in which the source text/disassembled text is displayed.
Select the variable or I/O register as the subject to access and, according to the access type you specify, perform the following operation from the context menu. However, the variables you can select are only global variables, static variables inside a function, or static variables inside a file.
Note that when you have performed this operation, it is interrupted as if a point trace event has been set for the selected variable or I/O register, and it is managed on the Events panel (see “2.17 Event Management").
Perform this operation on the Watch panel.
Select the watch-expression as the subject to access and perform the following operation from the context menu. (See “2.11.6 Displaying and changing watch-expressions".)
However, the watch-expressions you can select are only global variables, static variables inside a function, static variables inside a file, and I/O registers.
Note that when you have performed this operation, it is interrupted as if a point trace event has been set for the selected watch-expression, and it is managed on the Events panel (see "2.17 Event Management" for details).
Only the watch-expressions in current scope are selectable. |
When you've finished setting a point trace event, execute the program (see "2.9 Execute Programs").
When the condition for the point trace event you've set is met during program execution, information on that is collected as trace data. For details on how to check trace data, see "2.13.6 Displaying an execution history".
When editing a trace event (access-related) you have set as a point trace event, first open the Events panel by selecting [View] menu >> [Event]. After selecting the trace event (access-related) displayed in the detailed information on the point trace event, click [Edit Condition ...] on the context menu. (See “2.17.4.2 Editing access-related events”.)
When deleting a trace event (access-related) you have set as a point trace event, first open the Events panel by selecting [View] menu >> [Event]. After selecting the trace event (access-related) you wish to delete in the detailed information on the point trace event in the Events panel, click ( ) button on the toolbar to delete it. (See “2.17 Event Management".)