cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to debug structs in stm32cube ide?

Stequila93
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Put it in the Expressions window first and ensure the debugger understands it. If it does not, it could have been optimized out or is out of scope. Show some screenshots and relevant code if you want to debug it.

Live Expressions need to be global variables and not stack-based so that they stay in scope and do not change position, although there can be workarounds.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

4 REPLIES 4
TDK
Guru

Of course. Why wouldn't it be?

If you feel a post has answered your question, please click "Accept as Solution".
Stequila93
Associate II

Which mode is possible to see a complete struct while running in debug? Live expression says failed to evaluate, swv canno't for the size. the only way that shows me a complete structs it's in variables while skipping code line per line?

Thanks

TDK
Guru

Put it in the Expressions window first and ensure the debugger understands it. If it does not, it could have been optimized out or is out of scope. Show some screenshots and relevant code if you want to debug it.

Live Expressions need to be global variables and not stack-based so that they stay in scope and do not change position, although there can be workarounds.

If you feel a post has answered your question, please click "Accept as Solution".
Stequila93
Associate II

Thanks, it was not in global scope.