nRF Connect for VS Codev2022.9.179 on MacBook Pro M1. The new nRF Debug in VSCode hangs before main starts. If I switch back to Cortex-Debug then I can debug.
nRF Connect for VS Codev2022.9.179 on MacBook Pro M1. The new nRF Debug in VSCode hangs before main starts. If I switch back to Cortex-Debug then I can debug.
Hello Denis,
Thank you for reporting.
This issue sounds similar to a known issue for nRF Debug which occurs when generating build configurations for simple applications which are not using threads. Does your application fall under that description? If so, there is a workaround to the issue included in the documentation for the nRF Connect for VS Code extension. The workaround can be found through this link: https://nrfconnect.github.io/vscode-nrf-connect/connect/debug_app.html#debug-troubleshooting.
Let me know if the workaround works for you.
Best Regards,
Maria
I am using threads.
I am using threads.
Hello Denis,
I apologize for the delay, I was out of office yesterday.
Could you please clarify when the program hangs? Is it before getting to main at all, or at the beginning of the code within main? If it pauses at the beginning of the main function this seems intentional, and it happens for me as well. You can then start the debugging from the control bar.
If the hanging is happening before main it may be a bug, and I need to get some additional information from you to be able to help you further. You can generate support information from the welcome menu of the extension.
BR,
Maria
I switched back to nRF Debug and am not seeing the previous issue now. I can debug. Not sure what changed between then and now. I will close this and open a new issue if seen again.