• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode interferes with signal handler (was: Sending SIGUSR1 to a process)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Sending SIGUSR1 to a process (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)
 >Re: Sending SIGUSR1 to a process (From: Saagar Jha via Cocoa-dev <email@hidden>)
 >Xcode interferes with signal handler (was: Sending SIGUSR1 to a process) (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Xcode interferes with signal handler
  • Next by Date: Re: Xcode interferes with signal handler
  • Previous by thread: Re: Xcode interferes with signal handler
  • Next by thread: Re: Sending SIGUSR1 to a process
  • Index(es):
    • Date
    • Thread