• 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: breakpoints ignored while running unit tests! Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: breakpoints ignored while running unit tests! Why?


  • Subject: RE: breakpoints ignored while running unit tests! Why?
  • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Mon, 8 Sep 2008 07:32:56 -0400
  • Thread-topic: breakpoints ignored while running unit tests! Why?

Actually, I tried to follow your blog post as completely as I could.
The only thing I can think of is that my executable has a space
character (as does the path).  I escaped it, then I turned the path into
a quoted string, but neither worked.  Here is what I have set up:

The argument to my executable is -SenTest All

The environment variables are as follows (if there are strange
formatting artifacts, I apologize; I'm forced to use Outlook, and have
no idea how to get it to stop breaking my lines against my will):

DYLD_INSERT_LIBRARIES
$(DEVELOPER_LIBRARY_DIR)/PrivateFrameworks/DevToolsBundleInjection.frame
work/DevToolsBundleInjection
DYLD_FALLBACK_FRAMEWORK_PATH    $(DEVELOPER_LIBRARY_DIR)/Frameworks
XCInjectBundle                  $(BUILT_PRODUCTS_DIR)/Unit Tester.octest
XCInjectBundleInto              $(BUILT_PRODUCTS_DIR)/FOCU_S
tester.app/Contents/MacOS/FOCU_S tester

I have also tried escaping the spaces ("\ "), and tried quoting the
entire path.  I also tried removing the $(BUILT_PRODUCTS_DIR) and
setting the working directory to Build Products directory in the General
tab for my executable.  None of this worked.  What am I doing wrong?

Thanks,
Cem Karan

-----Original Message-----
From: Chris Hanson [mailto:email@hidden]
Sent: Friday, September 05, 2008 10:04 PM
To: Karan, Cem (Civ, ARL/CISD)
Cc: Philippe Casgrain; xcoders
Subject: Re: breakpoints ignored while running unit tests! Why?

On Sep 5, 2008, at 2:23 PM, Karan, Cem (Civ, ARL/CISD) wrote:


	Thanks, but this doesn't work for me for some reason.


I've updated the post to also discuss the XCInjectBundleInto environment
variable, introduced in Xcode 3.1.

However, it sounds like you're expecting the breakpoint to happen when
you run your tests as part of your build.  That won't happen.  What you
need to do is build and then debug the executable that you configure for
test debugging, as I described in my weblog post.

Running your tests as part of your build process is a separate activity
from debugging your tests.

  -- 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: breakpoints ignored while running unit tests! Why?
      • From: Chris Hanson <email@hidden>
References: 
 >breakpoints ignored while running unit tests! Why? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: breakpoints ignored while running unit tests! Why? (From: Philippe Casgrain <email@hidden>)
 >RE: breakpoints ignored while running unit tests! Why? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: breakpoints ignored while running unit tests! Why? (From: Chris Hanson <email@hidden>)

  • Prev by Date: Xcode not detecting undefined functions with static library
  • Next by Date: In unit test target, how do I get my orange breakpoints to be blue?
  • Previous by thread: Re: breakpoints ignored while running unit tests! Why?
  • Next by thread: Re: breakpoints ignored while running unit tests! Why?
  • Index(es):
    • Date
    • Thread