Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debugging XDarwin apps in Projectbuilder?



On Tuesday, October 29, 2002, at 05:39 PM, tigital wrote:

hi,

...using ProjectBuilder, i've compiled an app and gotten it to run/debug, but not in a way that I'm familiar with...it should run under Xdarwin, but when that is open and I run the app in projectBuilder, I get:

Gtk-WARNING **: cannot open display:

GLib-CRITICAL **: file gstring.c: line 247 (g_string_free): assertion `string != NULL' failed.

Your app is looking for the environment variable DISPLAY, which PB presumably won't set.


GLib-CRITICAL **: file gstring.c: line 247 (g_string_free): assertion `string != NULL' failed.

...OTOH, if I pull out the 'executable' from the package, and run it from terminal in Xdarwin, it actually runs...kind of...meaning it launches and at this point needs debugging, and I don't know how to debug using gdb from the terminal...

Isn't PB's debugging system just "gdb with color"?

Is there a way to get the app to run in Xdarwin via projectbuilder's debugging system? Or is there a way to produce the executable without the packaging?

Many X apps take a command-line argument to specify the display (using the value you would set your DISPLAY variable to, when running from the shell). There may be a way to set environment variables in PB for running the program being debugged, but I don't know it. There is a "project-builders" list (see http://lists.apple.com) that may be a source of help.


Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | It's not whether you win or lose...
| It's whether *I* win or lose.
*--------------------------------------*-------------------------------*
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.




References: 
 >debugging XDarwin apps in Projectbuilder? (From: tigital <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.