Is it possible to debug structs in stm32cube ide?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-02 2:53 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-03 6:12 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-02 5:18 PM
Of course. Why wouldn't it be?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-03 1:04 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-03 6:12 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-01-03 6:21 AM
Thanks, it was not in global scope.
