[rules-users] Problem with debug Drools in Eclipse

Mark Proctor mproctor at codehaus.org
Thu Sep 6 08:17:19 EDT 2007


We have made no effort for debug to work with .dslr; heh Im surprised it 
works as far as it did. If someone wants to help get this working and 
submit a patch or two, that would be great.

Mark
vdelbart wrote:
> Hello,
>
> I want to use the debug mode of my DSLR but when I put a breakpoint the line
> number and the view is not correct. 
> Example :
>
> ---------------------------------------------
> MY DSLR :
>
>  1 - #created on: 6 sept. 2007
>  2 - package exemple2
>  3 - 
>  4 - #list any import classes here.
>  5 - import mcmipih.rules.demo.model.*;
>  6 - 
>  7 - expander dslDemoMoteurVenue.dsl
>  8 - 
>  9 - rule "Your First Rule"	
> 10 -	when
> 11 -       soit  'variable' étant un/une "Param" tel que
> 12 -		- IEP est égale à "nothing"
> 13 -		- RIO est égale à ""
> 14 -	then 
> 15 -		afficher le message "nothing in IEP"
> 16 - end
> ---------------------------------------------
>
> In DRL Viewer I have 
> ---------------------------------------------
>  1 - #created on: 6 sept. 2007
>  2 - package exemple2
>  3 - 
>  4 - #list any import classes here.
>  5 - import mcmipih.rules.demo.model.*;
>  6 -
>  7 -
>  8 -
>  9 - rule "Your First Rule"	
> 10 -	when
> 11 -	variable:Param( IEP == "nothing", RIO == "" )
> 12 -	then 
> 13 -	System.out.println("nothing in IEP");
> 14 - end
> ---------------------------------------------
>
> But when I put a beakpoint on the line 15 in my DSLR, my program don't stop.
> But when I put the breakpoint on the line 13, my program stop in the then.
>
> The reason is all the conditions like this is not count :
>
>       soit  'variable' étant un/une "Param" tel que
> 		- IEP est égale à "nothing"
> 		- RIO est égale à ""
>    
>    number of line : 3
>
>    but in the DRL Viewer I have :
>      variable:Param( IEP == "nothing", RIO == "" )
>
>    number of line : only 1
>
> And the debug takes the DRL and not the DSLR.
>
> Strange !
>
>
> Vdelbart
>
>
>
>
>   




More information about the rules-users mailing list