[jboss-jira] [JBoss JIRA] (DROOLS-655) Debug: Line after "THEN" ignored
Marc Dzaebel (JIRA)
issues at jboss.org
Wed Nov 26 03:52:39 EST 2014
[ https://issues.jboss.org/browse/DROOLS-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marc Dzaebel updated DROOLS-655:
--------------------------------
Description:
If "THEN" is directly followed by code, the Eclipse debugger doesn't see the code, e.g. variables are not displayed in the "variables" debug view.
{code}
rule ""
when
then int i=1;
System.out.println( i); // breakpoint set here
end
{code}
Additionally, it's impossible to set breakpoints at the line of "THEN". So the indentation style is forced to always have a line for then. Even smallest rules need to take unnecessary number of lines. However, the above rule works.
was:
If "THEN" is directly followed by code, the Eclipse debugger doesn't see the code, e.g. variables are not displayed in the "variables" debug view.
{code}
rule ""
when
then int i=1;
System.out.println( i); // breakpoint set here
end
{code}
Additionally, it's impossible to set breakpoints at the line of "THEN". So the indentation style is forced to always have a line for then. Even smallest rules need to take unnecessary number of lines.
> Debug: Line after "THEN" ignored
> --------------------------------
>
> Key: DROOLS-655
> URL: https://issues.jboss.org/browse/DROOLS-655
> Project: Drools
> Issue Type: Bug
> Affects Versions: 6.2.0.CR2
> Environment: All (Eclipse Debug)
> Reporter: Marc Dzaebel
> Assignee: Mark Proctor
> Priority: Minor
>
> If "THEN" is directly followed by code, the Eclipse debugger doesn't see the code, e.g. variables are not displayed in the "variables" debug view.
> {code}
> rule ""
> when
> then int i=1;
> System.out.println( i); // breakpoint set here
> end
> {code}
> Additionally, it's impossible to set breakpoints at the line of "THEN". So the indentation style is forced to always have a line for then. Even smallest rules need to take unnecessary number of lines. However, the above rule works.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the jboss-jira
mailing list