• 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: How to break on a variable change in XCode debugging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to break on a variable change in XCode debugging


  • Subject: Re: How to break on a variable change in XCode debugging
  • From: Jim Ingham <email@hidden>
  • Date: Tue, 21 Dec 2004 10:48:29 -0800

You have to be stopped in the debugger in order for the commands you type in the console to be sent to gdb. Other than that, I don't know what could be going wrong. The first step in debugging this is to do:

1) Quit Xcode.
2) In Terminal, say:

$ defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
$ defaults write com.apple.Xcode PBXGDBDebuggerLogFileName /tmp/IncludeInBug.log


3) Restart Xcode, and run the debugger and try to send some commands from the console. Make sure the program you
are debugging is stopped at a breakpoint (or you have interrupted it.)
4) If it still doesn't work, file a bug and attach /tmp/IncludeInBug.log to the Radar. I can at least tell if
any of the commands are making their way to gdb, and if so, why you aren't seeing the results.


Jim


On Dec 21, 2004, at 1:43 AM, Jerry wrote:


On 21 Dec 2004, at 02:32, Jim Ingham wrote:

There isn't a GUI way to do this yet. But you can do it in the gdb console. Just bring up the Debugger log (under the Debug menu), and use the "watch" command.

One little subtlety, if you do something like:

(gdb) watch foo->bar->baz

I'm obviously missing something important here, but I've never been able to type commands into the debugger console. The text goes in, but gdb never executes any commands. You just end up with "(gdb)" followed by your command and a load of blank lines where you've been pressing Enter trying to get it to do something.


Jerry

_______________________________________________
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
_______________________________________________
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


References: 
 >How to break on a variable change in XCode debugging (From: Mike Lazear <email@hidden>)
 >Re: How to break on a variable change in XCode debugging (From: Jim Ingham <email@hidden>)
 >Re: How to break on a variable change in XCode debugging (From: Jerry <email@hidden>)

  • Prev by Date: Using Unix Command Line Tools
  • Next by Date: target "Get Info" yields "Internal Error"
  • Previous by thread: Re: How to break on a variable change in XCode debugging
  • Next by thread: Re: How to find the memory smasher (Was: How to break on a variable change in XCode debugging)
  • Index(es):
    • Date
    • Thread