iarsystems / iar-vsc-debug

Visual Studio Code extension for the IAR C-SPY debugger
19 stars 1 forks source link

Enable to switch from one call stack to another #19

Open JackHerRrer opened 1 year ago

JackHerRrer commented 1 year ago

I hope this is the right place to report this issue. I have a project that uses freeRTOS. When debugging it, I cannot switch from the call stack of a task to another. The only call stack I can explore is the one of the task that was active at moment I paused the program. When using IAR, jumping from one call stack to another works great. I don't know if this is linked or not but, in the "embedded tools: rtos viewer", when I click on the task name, it only adds a variable in the "watch view" Is it a bug ? Or is it just an unavailabe feature ?

benmcmorran commented 1 year ago

This is the expected behavior currently. The RTOS viewer inspects memory to show available RTOS objects, but the call stack view is controlled by the threads returned from the debug adapter itself. To visualize FreeRTOS call stacks using C-SPY, you'll want to investigate RTOS awareness plugins for C-SPY.

HampusAdolfsson commented 1 year ago

This is something we might be able to support in the future, by exposing windows from C-SPY's RTOS plugins in VS Code.