Re: Xcode interferes with signal handler (was: Sending SIGUSR1 to a process)
Re: Xcode interferes with signal handler (was: Sending SIGUSR1 to a process)
- Subject: Re: Xcode interferes with signal handler (was: Sending SIGUSR1 to a process)
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Wed, 31 Jan 2024 20:13:29 +0100
I think , I found the solution, so just for the record
(so that others will find it using Google):
Launch the app in the debugger on the command line :
lldb /private/tmp/Build/Products/Debug/MyApp.app
In lldb's command line:
process handle -p true -s false -n true // otherwise lldb will stop on
SIGUSR1
Set your breakpoints as needed, then
r --no-stdin
Then you can 'kill -30 <pid-of-myapp>' without getting those annoying breaks in
mach_msg2_trap.
Hope this helps.
Gabriel.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden