I am using a nRF5340 DK with nRF Connect for VS Code, and wanted to debug a problem so I enabled debugging with:
CONFIG_DEBUG_OPTIMIZATIONS=y CONFIG_DEBUG_THREAD_INFO=y
Now I'm getting Stack Overflow errors. I was following this video on
nRF Connect for VS Code, part 5: Debugging