‎2021-12-07 08:20 AM
This maybe a silly question, but is it possible to set the IDE NOT to open the source file when stopping or pausing a debug session.
Nine times out of ten, it stops in a core routine and one just ends up with lot of open files that are generally of little interest whilst debugging one's own code.
Stopping at breakpoints are, of course, a different matter.
Andy
‎2021-12-07 11:36 PM
Nice question.
In your project tree right-click on Drivers and/or other folders you want to exclude.
In the context menu: Properties > C/C++ Build > Settings MCU GCC Compiler > Debugging set debug level to None.
Clean build your project.
Now, source code file/line infos are no longer included for those folders.
Start debugging, wait a while, break. You will see a "No source available for ..." window.
Don't "View Assembly", but click Preferences which will open the Preferences > C/C++ > Debug dialog (also available from the main menu in Window > Preferences).
Check the "Never" radio button under Source Not Found, Apply and Close.
Next time you break the debugging, you will see the call stack, but not the unwanted source code files.
hth
KnarfB
‎2021-12-17 02:29 AM
KnarfB,
Thanks, that makes it so much nicer to use.
It's been (de)bugging me for ages ;)
Andy