• 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
debugging & variable updates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

debugging & variable updates


  • Subject: debugging & variable updates
  • From: Markian Hlynka <email@hidden>
  • Date: Mon, 14 Mar 2005 17:38:52 -0700

Is there an issue I don't know of with variable updates in the debugger?

I had just thought I'd run a line of code,
else
{
trans.depth=-1; //our retrieve did not succeed. we can check this
//field later, and if it's not -1 our retrieve

//succeeded, but we didn't cut, and we can use that
//for move ordering.
//fprintf(logfile,"retrieve failed\n");
}

but, I didn't check that the assignment worked (why would I?).

A few lines later:

0)

So, before stepping throught this line, I go to the debugger window and display the data structure trans. trans.depth was 0. I was irritated, and thought I missed something. prior to resetting the debugger to run by it again, I went to get a drink etc. I come back, about to reset. I _think I checked the variable in the GUI once again. Anyway, on a whim I typed "p trans.depth" into the debugger console... And it came up -1! I brought trans back up in the GUI, and lo, it's -1 now!

What's going on? did the wait trigger it? Was it the "p trans.depth" command? If I'd executed

0)
would it have worked correctly?

obviously, this worries me for a host of reasons!

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

  • Prev by Date: Re: Distributed Builds
  • Next by Date: Re: merging jar files in Xcode 1.5
  • Previous by thread: Re: merging jar files in Xcode 1.5
  • Next by thread: "debugger console" windows' names
  • Index(es):
    • Date
    • Thread