[ 
https://issues.apache.org/jira/browse/GROOVY-12752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles updated GROOVY-12752:
---------------------------------
    Description: 
Consider the following:
{code:groovy}
boolean flag = false
if (flag) {
  println 'x'
} // last line; should step here, not the line above
{code}

When this is the body of a script, the debugger still steps from "if \(flag\)" 
to "println" instead of stepping to the "}" line.  This is because the block 
statement for the script has no line number information.

  was:
Consider the following:
{code:groovy}
boolean flag = false
if (flag) {
  println 'x'
} // last line; should step here, not the line above
{code}

When this is the body of a script, the debugger still steps from "if (flag)" to 
"println" instead of stepping to the "}" line.  This is because the block 
statement for the script has no line number information.


> write line for script block exit
> --------------------------------
>
>                 Key: GROOVY-12752
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12752
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Major
>
> Consider the following:
> {code:groovy}
> boolean flag = false
> if (flag) {
>   println 'x'
> } // last line; should step here, not the line above
> {code}
> When this is the body of a script, the debugger still steps from "if 
> \(flag\)" to "println" instead of stepping to the "}" line.  This is because 
> the block statement for the script has no line number information.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to