Tutorial: Installation and Evaluation Version Basic Tests (Step 4)

Debugging an application

  • Terminate the running application in the redBlocks Workbench (hit the red stop button in the console view).

Stop Project Vendingmachine

  • The simulation session that is in progress within the redBlocks Simulator pauses automatically. It can be left in this state and will automatically resume when the application is started again from the redBlocks Workbench.

Simulator paused icon

 

 

  • Now start a debugging session in the redBlocks Workbench:

Debug Project

  • Confirm the dialog that may pop up and informs you that the redBlocks Workbench will switch to the debug perspective.
  • You should now see the source code in main.cpp and the debugger halts at the beginning of the main routine. On some platforms this does not work on the first start of the debugger. You then need to stop the debugging session and start it again.
  • Resume the application with the debugger controls or with F8. When changing to the redBlocks Simulator, you should now see that the simulation session in the redBlocks Simulator was restarted.

Simulator running icon

  • Each time the application hits a breakpoint, the redBlocks Simulator pauses its simulation until the application is resumed.

Simulator paused icon

  • A resumed simulation session is represented with the following icon within the redBlocks Simulator.

Simulator resumed icon

Congratulations: When you ended up here, your installaton is up an running.