> From: Rob Kendrick <[EMAIL PROTECTED]>
> Date: 2008/03/31 Mon PM 11:35:16 GMT
> To: netsurf-dev <[email protected]>
> Subject: Re: Printing variables with printf()
>
>
> On Mon, 2008-03-31 at 22:03 +0100, Leon Stringer wrote:
>
> > Let's say in gtk/gtk_options.c I insert the following at line 144:
> >
> > printf("%d\n", proxytype);
> >
> > I see nothing. Something like
> >
> > printf("test\n");
> >
> > works fine.
>
> I have no idea what might cause this: have you tried putting a fflush(stdout)
> after it?
Thanks for your reply. fflush() doesn't help. If I do a noddy C prog it's fine,
of course. Very odd.
> Incidentally, we have our own debug logging macro, which you can call
> thus:
>
> LOG(("%d\n", proxytype));
>
> Note the double-brackets. These will then output something when nsgtk
> is launched with the -v flag, thus:
>
> NETSURFRES=./gtk/res ./nsgtk -v
Thanks for that. I saw the LOG function/macro but didn't now how to enable the
output. That works fine for me.
> Hope this helps. Which issue are you referring to, and which BTS did
> you log it on?
On SourceForge ([ 1927155 ] Proxy Type setting). I wasn't complaining about
this, I'd only just reported it. I just thought I'd have a crack at it (they
joys of open source!).
-----------------------------------------
Email sent from www.virginmedia.com/email
Virus-checked using McAfee(R) Software and scanned for spam