[ic] Flypage, multiple product tables, and [item-field]

Todd L. Cawthron interchange-users@interchange.redhat.com
Mon Nov 5 12:05:01 2001


Steffen Dettmer wrote:

>Could you please tell me how to enable the debug features?

There are a couple of things you need to do.  First you need to set a couple
of directives in interchange.cfg.  Then, you will need to uncomment some
lines in various perl modules in (ic directory)/lib/Vend.

In interchange.cfg, un-comment (or add it if it's not in your cfg file):

Variable DEBUG 1

This will activate a section of interchange.cfg that's further down in the
file that controls the specifics of what debug output is generated.  That
section begins with "ifdef @DEBUG".  The DebugFile directive is set to name
of the output file that will be created with the debug info.

If you are using DBI and want to log the DBI calls, then un-comment the
directive DataTrace 1.  This will produce a LOT of output, so you only want
to activate it if you think you're problem is remotely related to DBI.

Once you have made these changes in interchange.cfg, you need to modify some
perl modules.  The cfg file only makes it possible for debug features to
work, it doesn't really turn most of them on.  For that, go to (ic
directory)/lib/Vend.  Make sure you have a backup copy of everything you're
about to modify, just in case you make a mistake.  Then, un-comment all of
the lines that call ::logDebug.  If you are using vi, this will do the
trick:

:%s/#::logDebug/::logDebug/

Well, it will almost do the trick.  In some modules, there are other lines
that have been commented out that must be un-commented for certain
::logDebug calls to function.  You'll find out which lines these are after
you restart interchange.  It will provide a few error messages that can help
you hunt down the other lines...

Todd L. Cawthron
todd@lunsfordgroup.com