FreeRTOS thread view
For the case of debugging with FreeRTOS, CLion provides a view of FreeRTOS tasks (threads) with their names and current statuses in the debug tool window.
Enable FreeRTOS thread view
- Select the Enable RTOS Integration checkbox.
Both Auto and FreeRTOS options are applicable. Auto is a more general option for RTOS-s other than FreeRTOS (not supported currently).
For example, here is how an Embedded GDB Server configuration can be set up using the QEMU emulator:
Now if we place breakpoints and launch this configuration, the FreeRTOS tasks will be listed in the Frames pane of the debug tool window. We can switch between them and explore task variables in the Variables pane:
More FreeRTOS objects like queues, semaphores, mutexes, and timers are planned to be added later (see CPP-17219).