Re: [gnome-db] Debugging libgda



On Thu, 2002-02-07 at 01:58, Daniel Morgan wrote:
> How do you debug libgda?
> 
> Would I print lines to the screen or a file using one of the following:
> 
> g_print("\nlibgda Debug\n");
> 
> fprintf(stderr, "\nlibgda Debug\n");
> 
> printf("\nlibgda Debug\n");
> 
> FILE *fp;
> fp = fopen("debugfile.txt","w");
> if(!fp)
> {
> 	fprintf(fp,"libgda Debug\n");
> 	fclose(fp);
> }
> 
> Well, these are not working for some reason.  Any suggestions?
> 
if you want to debug the providers, as they are separate processes, and
started by OAF, you must use gdb. That is, all g_print output won't be
shown on the console.

So, the best thing, if we want to log debug messages, we might want to
use the gda_log functions. For GNOME 1.x, all messages sent via
gda_log_* are stored in GConf database. For GNOME 2, they do nothing.
There is a bug in bugzilla for this.

cheers
-- 
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]