At this moment your application is executing but suspended on the function main()
. This means the C startup code has been executed already. From this point, you can step through your application while inspecting what happens.
From the Debug menu, select Step Over, or press F6, or click on the Step Over button () in the Debug view.
The highlight in the Edit view moves to the next statement.
Press F6 again.
The highlight in the Edit view moves to the next statement.
In the Variables view, you can inspect the value of the variable i
. It is now set to 1.
Press F6 again.
The printf
statement has been executed now. The bottom area of your workbench now shows a new view: FSS # 1 - myproject.
FSS stands for File System Simulation. The FSS view simulates the input and output to and from the target board or simulator when you are debugging. The value of int i
is printed and sent to the FSS view for output.
To clear the FSS view, right-click in the view and select Clear.
To restart your application, from the Debug menu, select Restart ().
Step further through your application.
Watch the value of int i
in the Variables view and observe the output in the FSS view. The output is only flushed after a newline (\n
)!
When you debug your application in an interrupt enabled environment, it might be useful to enable Interrupt aware stepping (). This prevents stepping into an interrupt handler when an interrupt occurs.
Copyright © 2024 TASKING B.V.