printf question
Geert Janssens
janssens-geert at telenet.be
Mon Mar 21 09:58:02 EDT 2011
On maandag 21 maart 2011, Stephen Brown wrote:
> Hi Christian
> ----- Original Message -----
> From: "Christian Stimming" <stimming at tuhh.de>
> To: "Stephen Brown" <stephengrantbrown at mcmedia.com.au>
> Cc: "GNUCash Devel" <gnucash-devel at gnucash.org>
> Sent: Monday, March 21, 2011 8:22 PM
> Subject: Re: printf question
>
> > Zitat von Stephen Brown <stephengrantbrown at mcmedia.com.au>:
> >> run install.sh, open a Microsoft Vista Command prompt, and then
> >> ------------------------------------------------------------------------
> >> ----------- P:\soft\gnucash\inst\bin>gnucash-launcher.cmd
> >>
> >> P:\soft\gnucash\inst\bin>
> >> ------------------------------------------------------------------------
> >> ---------- Where does the output of the printf statement go?
> >
> > If the start-up of gnucash still opens a separate console, it should go
> > there. If we've switched off that separate console, it goes nowhere.
>
> How do I switch off that separate console?
> How do I switch on that separate console?
>
I hope Christian can give more details about this.
> > My workaround for similar debugging steps is to use g_warning("Some
> > number %d", some_number) instead of printf(), i.e. the function
> > arguments of g_warning are the same as the ones of printf. Once the
> > logging filename was set up correctly, your g_warning statements will
> > at least show up there.
>
> How do I set up the logging filename correctly?
>
You can use the --logto command line option to gnucash. For example if you run
gnucash-launcher.cmd --logto c:\logfile
your debug messages will be stored in a file called
c:\logfile.ABCDEF.log
with ABCDEF some random digits.
If you don't pass the --logto option, the logfile will default to
%TEMP%\gnucash.trace.ABCDEF.log
%TEMP% is usually c:\Documents and Settings\<username>\Local Data\Temp (WinXP)
or c:\Users\<username>\Local Data\Temp
Geert
More information about the gnucash-devel
mailing list