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

Steffen Dettmer interchange-users@interchange.redhat.com
Wed Nov 14 08:18:01 2001


* Todd L. Cawthron wrote on Mon, Nov 05, 2001 at 08:58 -0800:
> 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.

Wouldn't it better to check in logDebug if debug is set? 

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

Had it already.

> 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/

I though
perl -pi -e 's/#(::logDebug.*;)/$1/' *
would do the trick too, but this wasn't the solution. I found a
lot of non-declared variables to be logged. I copied a few files
from the backup copy. 

How do the developers test this software?

Well, now I have a Vend.debug and a Vend.nodbug - Vend itself is
now a symlink. 

Now it's going really crazy: with the debug version the 99%CPU
hang does not occures: interchange works, but with debug only.
This may be due to a debug statement side effect? I tried it 10
times, 5 with and 5 without debug. In every case with debug it
worked, and every case without debug the interchange hangs!

What can I do now?

oki,

Steffen

-- 
Dieses Schreiben wurde maschinell erstellt,
es trägt daher weder Unterschrift noch Siegel.