Beanshell scripts are best debugged just with a Debug.log_() call. See:
http://www.opensourcestrategies.com/ofbiz/ofbiz_debugging.txt
On Jul 24, 2006, at 4:17 AM, Fabian Gorsler wrote:
Hi,
is there any easy way to debug Beanshell-scripts in OFBiz? If I
could see
their context/request/session, this would be great, but up to now I
could
not find an easy way for attaching Eclipse's debugger to the OFBiz-VM
(Parameters for debugging the VM are set, the connection to the VM
works.)
and having access to the fields of a BSH.
With JConsole I didn't get anything, too.
Where shall I set the breakpoints for Eclipse? What could I use
else than
Eclipse?
TIA
PS: Up to now everything works really great for me, BSHs, Widgets,
Freemarker - really, great. The entity engine rocks, too. But I've had
several times the problem, that there is something missing in the
request
attributes and a debugger would be much more comfortable than
debugging
with print(...);...
Best regards,
Fabian.