Debugging Beanshell-scripts

Posted by Fabian Gorsler on
URL: http://ofbiz.116.s1.nabble.com/Debugging-Beanshell-scripts-tp140870.html

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.