• 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: My App Wont Debug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My App Wont Debug


  • Subject: Re: My App Wont Debug
  • From: Todd <email@hidden>
  • Date: Sun, 09 Oct 2011 17:26:50 -0700

HI All,

More on this.

> OS X 10.6.8, XCode 3.2.6.
>
> I copied my entire project over to another machine running the same
> setup as above and nothing debugs. I place break points, they are
> never hit. If I do place a break point on return(0); in main() it does
> hit that. But nothing before and it should be! It does on my other
> system.
>
> Does anyone have thoughts why this might be the case?

Here is my main() function:

// Main()
#ifdef __BUILD_MAC__ || __BUILD_LINUX__
	int main( int argc, char *argv[] )
#else if __BUILD_WIN__
	int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPreInst, LPSTR
lpszCmdLine, int nCmdShow )
#endif
{
        int jason=0;
	try
	{
		#ifdef __BUILD_MAC__ || __BUILD_LINUX__
			std::auto_ptr<CPLAT::CP_Startup> 	platformStartup(CP_new
CPLAT::CP_Startup(argc, argv));
		#else
			std::auto_ptr<CPLAT::CP_Startup> 	platformStartup(CP_new
CPLAT::CP_Startup(hInst, hPreInst, lpszCmdLine, nCmdShow));
		#endif

		FXHostApp		application;
		application.Run();
	}
	catch(...)
	{
	}

	return( 0 );
}

So if I place a break point on the int jason=0; the debugger does
stop, It says at that line number, but the red arrow is placed at
'std::auto_ptr<CPLAT::CP_Startup> 	platformStartup(CP_new
CPLAT::CP_Startup(argc, argv));' line.

If I try to do a step over when stopped at the int jason=0; It just
goes to return(0);

Like the try{} is being ignored some how. This used to work just fine.

Thoughts are appreciated.

-Jason
 _______________________________________________
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: My App Wont Debug
      • From: Quincey Morris <email@hidden>
References: 
 >My App Wont Debug (From: Todd <email@hidden>)

  • Prev by Date: My App Wont Debug
  • Next by Date: Zooming in Interface builder in 4.1
  • Previous by thread: My App Wont Debug
  • Next by thread: Re: My App Wont Debug
  • Index(es):
    • Date
    • Thread