add note on how to work with log/trace messages

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9292 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2003-09-12 13:31:04 +00:00
parent dff9fa3b3b
commit 6a1b32c6b9

17
HACKING
View File

@ -67,7 +67,9 @@ Scheme:
Dave Peticolas <dave@krondo.com>
August 22, 2000
--------------------------------------------------
=====================================================================
TIPS AND HINTS
=====================================================================
Starting Gnucash from the build tree:
-------------------------------------
@ -79,6 +81,18 @@ To run gnucash from your build tree:
-- Make sure you undo this change before installing gnucash
Getting Trace Messages From GnuCash:
------------------------------------
Note that piping stdout from gnucash to a file causes gnucash to crash.
Don't know why, this is a bug that needs to be fixed. Here's another
way to get trace messages into a file:
-- edit src/engine/gnc-trace.c, adjust values in the array
gnc_log_modules[] to what you want to have for a given module.
-- edit gnc_log_init() to fopen() the log file where you want
messages to go to.
Starting GnuCash in GDB
-----------------------
To run gdb on an installed version of gnucash (installed in /usr/local/bin:)
@ -106,6 +120,7 @@ I get a bunch of errors:
If you know how to fix this, please update tehse instructions.
Using Valgrind with GnuCash
---------------------------
-- run ./src/bin/overrides/gnucash-valgrind