Simulating Icons Step by Step

From Flowcode Help
Jump to navigationJump to search
Starting simulation v8.png

Step Into

To simulate the flowchart, icon by icon, select the 'Step Into' option from the 'Debug' menu (Debug> Step Into), click the 'Step Into' Btn Step Into.png button on the main toolbar or press F8 on the keyboard. A red rectangle indicates the icon that is about to being executed. The variables, call stack and chip windows are updated on every step of the simulation. In addition, if there are external components attached to the microcontroller then their state is shown in the external component window.

Step Over

To Step Over a macro select the 'Step Over' option from the 'Debug' menu (Debug > Step Over), click the 'Step Over' Btn Step Over.png button on the main toolbar or press Shift+F8 on the keyboard. Step Over works in the same way as Step Into, but with the following difference. When Step Over encounters a macro that contains a separate flowchart Step Over processes the whole macro instead of opening it and executing it step by step. In effect it steps over the flowchart.


Step Over is useful to avoid having to step through lengthy macros and allows the user to concentrate on other areas of the flowchart that may require their attention.

Gen Simulation Debugger Change Variable Value.png


Changing variables during Simulation

When simulating variable values can be changed from the Simulation Debugger window by clicking on the 'Value' box next to the variable name and then simply typing in a value.


If the ICD Mode is enabled in your Project Options then stepping into or over in the simulation will cause the ICD hardware to react accordingly. Changing variable values during the simulation will also work seamlessly with the ICD operation.