Re: [gnome-db] Debugging libgda
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: Daniel Morgan <danmorg sc rr com>
- Cc: GDA <gnome-db-list gnome org>
- Subject: Re: [gnome-db] Debugging libgda
- Date: 07 Feb 2002 11:45:55 +0100
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]