• 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
Unit Tests, Breakpoint, and the color Orange
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unit Tests, Breakpoint, and the color Orange


  • Subject: Unit Tests, Breakpoint, and the color Orange
  • From: Rob Evans <email@hidden>
  • Date: Sun, 22 Mar 2009 12:53:15 -0300

Folk,

If you've seen this sort of question a million times and value your
time, you may want to read the email bottom to top.

I have a situation where I can't get Xcode to stop on breakpoints set
in my Unit Tests. I have read through the archives and consulted
google and done my best to resolve this myself before asking for help.
By way of background, I have:

1] Ensured that I can build my project cleanly with all tests passing.

2] I know the difference between "build time" and runtime and when you can and
    can not expect a breakpoint to be hit.

3] I can even call [NSApp delegate] and get my applications delegate
from within
    a unit test, so it appears that code injection is working properly
during at build time.

4] Lazy loading of symbols is turned off.

So, my best guess is that that code injection is not happening at
runtime. Here's why:

* Console output of tests is not visible, which indicates that tests
are not being executed at runtime
* Unit test breakpoints are "orange" indicating that GDB can not
locate the instructions/code

But interestingly, running lsof against the running application, I can
see that DevToolsBundleInjection is being opened

What can I do to gain some insight into what is actually happening
with DevToolsBundleInjection? For example, since breakpoints set in my
application code *do* work, is there a means of using GDB that would
allow me to determine with certainty whether or not my test code has
been properly injected? Anything else I should try?

BTW, DevToolsBundleInjection injects code at runtime only, yes? So
running class-dump against the executable won't help...


Xcode Version -- 3.1.2
OS X -- 10.5.6

Cheers,
Robert Evans
 _______________________________________________
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: Unit Tests, Breakpoint, and the color Orange
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: What VCS do you use with xCode?
  • Next by Date: including wxwidget in a project
  • Previous by thread: Re: What VCS do you use with xCode?
  • Next by thread: Re: Unit Tests, Breakpoint, and the color Orange
  • Index(es):
    • Date
    • Thread