Debugging (setting break point) Ilog Jrules in evaluation part

353 views Asked by At

I'm working with Jrules and ODM. One of my evaluations fails due to a null pointer, and I want to know which particular condition failed.

How can I do this? The Jrules tutorials shows setting debug point in the action part, but not the evaluation (if...) part.
Is there a direct way to step condition by condition, so that I can locate which particular condition (evaluation) failed?

2

There are 2 answers

0
Didier On

You can debug in the actions by putting some print statements in the initialaction and finalaction of each rules.

initialaction{
System.err.println("Debug here"+variable);
};
0
Mohammed Khaleel On

you can also add a sysout in the setter of the variable or loops used for actions and can see the system.out.log file inside sample server folder (location: it depends in which drive we have installed the file) to trace what see what value is passing through that variable. Thanks Mohammed Khaleel