Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When debugging, can I make Xcode ignore certain signal?

I am making some development on Xcode for a OS X application. I need to send SIGUSR1 to the application by:

  kill(getpid(), SIGUSR1)

This worked. However, each time the SIGUSR1 sent, Xcode was blocked to show me that a signal was caught. Can I make Xcode simply ignore this signal and keep continous running during debugging?

Thank you at advance!

like image 292
Andrew Chang Avatar asked Mar 22 '26 11:03

Andrew Chang


1 Answers

Borrowing shamelessly from this question you can use something like

process handle SIGUSR1 -n true -p true -s false

from the LLDB console. The accepted answer to that question has a method for enabling this automatically on every run.

like image 50
Robin Macharg Avatar answered Mar 24 '26 00:03

Robin Macharg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!