How to tell the debugger not to break on signals?

Hi all,

Whenever a signal is raised, the debugger pauses. This is a real nuisance (in my current application at least). Is there any way to prevent this?

You can tell lldb not to stop on particular signals - eg. "process handle SIGSEGV -n true -p true -s false" - but this has to be done every time the app is run, which is no good.

In XCode, the workaround is to create a non-pausing breakpoint that sends the above command to lldb; inelegant, but it works.

Am I missing something, or is there no way to accomplish this in AppCode?

Thanks.

2 comments

Adrian, currently there is no such functionality in AppCode.
Could you please file a request in our tracker and describe the use case? I mean in what scenario does stopping on signals become a problem?

0

I have done so: OC-7882.

Simply put, signals don't necessarily mean something has gone wrong - they can be used for in-process messaging. This can be used a great many times per process - certainly too many to click "continue" every time!

0

Please sign in to leave a comment.