• 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: Executable path is nil!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Executable path is nil!


  • Subject: Re: Executable path is nil!
  • From: j o a r <email@hidden>
  • Date: Tue, 3 Jan 2006 16:14:10 +0100


On 3 jan 2006, at 15.56, Kai-Mikael Jää-Aro wrote:

I run XCode 2.2 and have a project. If I build and run it from the Build Results window the program runs, but I get no debugging info, in particular, the program does not stop at breakpoints,
Well, if you're just launching it, and not running in a debugger, that's not surprising...
Well, there is this spray can icon with the text "Debug". I thought it would run a debugger...

It does. It was just not clear from your description that you attempted to launch it in the debugger.
I can not explain why you can (sort of) launch your app in the debugger from the build&run window, but not from the debug window.


The most common reason why you fail to stop on breakpoints is that the binary was compiled with optimization. Check that you're using the "Debug" ("Development") configuration, and that it's set to compile without optimization!

Verify that "Inspector > Debugger > Auto-attach debugger on crash" is enabled for the executable in question.
It is checked, yes.

If you run in the debugger, I don't think that this pref matters. I think it only applies to when you launch with no debugger.


Is this a custom executable (ie. not the one you get with your application target)? You are trying to debug a project that does have an application target, or a valid custom executable, right?
This is just the standard target.

OK, in that case it should always find the executable.

I assume that this used to work, but for some reason stopped working? Can you link this to some changes to your project, your sources, or on your machine? Does it still work for other projects?

Unless you get any other advice, I would suggest:

[1] Quit Xcode and throw away your build directory. Launch Xcode, clean all targets, and build.
[2] If it still fails, uninstall (using the provided script) and reinstall Xcode from scratch. Goto [1].


j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Executable path is nil!
      • From: Kai-Mikael Jää-Aro <email@hidden>
References: 
 >Executable path is nil! (From: Kai-Mikael Jää-Aro <email@hidden>)
 >Re: Executable path is nil! (From: j o a r <email@hidden>)
 >Re: Executable path is nil! (From: Kai-Mikael Jää-Aro <email@hidden>)

  • Prev by Date: Re: Executable path is nil!
  • Next by Date: Re: Executable path is nil!
  • Previous by thread: Re: Executable path is nil!
  • Next by thread: Re: Executable path is nil!
  • Index(es):
    • Date
    • Thread