• 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: Breaking into debugger with key press while running GUI app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breaking into debugger with key press while running GUI app


  • Subject: Re: Breaking into debugger with key press while running GUI app
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 30 Mar 2006 20:14:52 -0800


On Mar 30, 2006, at 7:48 AM, Sean McBride wrote:

Xcode's debugger has the 'pause' button in its toolbar, which is great.

Is there a way to do the same thing with a keypress?  Like in the old

days pressing the programmer's switch to break into Macsbug.


It would be handy in situations like debugging someone else's code and

needing to break into the debugger without moving your app into the

background.


On Mac OS X it's not quite as straightforward as a hardware NMI. You don't want to interrupt the whole machine, you just want to send a signal to a particular process;  how do you tell it which process?  (I suppose you could write some global doohickey that sends a SIGINT to the frontmost process.  But in general you should just either Command-Option-P (pause) when Xcode is frontmost, or build a "Debug" menu item into your app that calls Debugger() when you want it to.

Chris 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Breaking into debugger with key press while running GUI app
      • From: "Sean McBride" <email@hidden>
References: 
 >Breaking into debugger with key press while running GUI app (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: odd universal binary behavior with resources
  • Next by Date: Re: Xcode and ccache
  • Previous by thread: Breaking into debugger with key press while running GUI app
  • Next by thread: Re: Breaking into debugger with key press while running GUI app
  • Index(es):
    • Date
    • Thread