Rather complete doc about debug : 
http://www.opensourcestrategies.com/ofbiz/ofbiz_debugging.txt (Mmm, I should 
read it ;o)

BTW, Yes I use also info.

You may also use debug.log ("shorter") or even Print("even more shorter") in 
BSH and Java (but only for fast debugging that will no
stay : not std)

I use to add something like "==========================================" in the 
string to show : visible at 1st glance.

Jacques

----- Original Message ----- 
From: "Chris Howe" <[EMAIL PROTECTED]>
To: <[email protected]>; "Jacques Le Roux" <[EMAIL PROTECTED]>
Sent: Sunday, February 04, 2007 10:55 PM
Subject: Re: form-widgets debugging


> David beat me to it on the showing your variable
>
> To clarify what Jacques was suggesting,
> print your variable of interest to the log from the action that is
> gathering it.
>
> If your action to populate your form is:
>
> a service that calls a simple method:
> in the simple method us <log level="info" message=${env}/> I use info
> instead of verbose because I don't like wading through the verbose
> messages of things I'm not interested in, then go back and remove the
> log message when everything works, or set it to verbose if it's
> important
>
> a service that calls a java method:
> in the java method place Debug.Info(env, module);
>
> a bsh call
> in the bsh script place Debug.Info(env, null);
> the bsh script also needs to have
> import org.ofbiz.base.util.*;
>
> --- Jacques Le Roux <[EMAIL PROTECTED]> wrote:
>
> > Use  something like <log level="verbose" message="${env}"/>
> >
> > Jacques
> >
> > ----- Original Message ----- 
> > From: "Christopher Snow" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Sunday, February 04, 2007 10:14 PM
> > Subject: form-widgets debugging
> >
> >
> > > How can I output the values of env variables from within forms to
> > help
> > > me debug them?
> > >
> > > Many thanks ...
> >

Reply via email to