In a particular project this happens most frequently, however I wasn't unable to find this on the net as something that sometimes happens.
When I run a project on a particular computer (on another fresh installed computer I have no issues), sometimes the execution pauses with SIGCONT.
I am able to resume the code, but then it stops again, and again, and again (on different points, to be honest, so not a loop kind of thing).
In the end I have multiple stops but if I restart execution most of the time it works. This happens only on the startup phase, and could be related to some network troubles, or using a proxy (proxyman) to debug network traffic.
I searched for lldb settings or "stop on all exception" kind of things, to no avail.
Any Idea? this is driving me crazy. I tried also reinstalling xcode, checking out the sources from git again.. any kind of debugging technique that popped to my mind. Since this is my main development machine, I think I could have some settings related to openssl, brew, some packages I installed that is conflicting with lldb.
`mach_msg_trap` is the most common point where it stops.
`dyld_start` another
Any help would be appreciated.
It looks like I found the external cause for all the SIGCONT. There is an application called App Tamer that is supposed to slow down applications that are clogging the CPU. Probably I misconfigured it by telling to slow down the simulator when it was running over 100%, and App Tamer as part of its managing processes is sending SIGCONT. There is still a doubt on why XCode stops execution for a SIGCONT, though.
So happy I found the cause of this problem, thank you Eskimo and also Jon of St. Claire Software which was so kind to help.