This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 151176 - Groovy debug's break point doesn't work in closure
Summary: Groovy debug's break point doesn't work in closure
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 16:22 UTC by pnizer
Modified: 2012-03-17 20:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pnizer 2008-10-23 16:22:21 UTC
I've written the following code as Groovy Class:

01  class GroovyTest {
02      def method(def list) {
03          list.each {
04              println "line1"
05              println "line2"
06              println "line3"
07          }
08      }
09  }

When I've tried to put a breakpoint at line 3, it's worked fine. But when I've tried to put a breakpoint at line 4, 5 or
6 the debugger has not stopped at these lines.
I can reach the lines 4, 5 and 6 only by pressing F7 (step into) button.
Comment 1 Petr Hejl 2008-11-19 15:28:58 UTC
I think it also does not work in instance method invoke from script.
Comment 2 Petr Hejl 2009-02-02 14:41:36 UTC
Quick fix in main a3ff285dd4c9. Prints some warnings, but should work. We need to spend more time on this.
Comment 3 Quality Engineering 2009-02-03 08:30:08 UTC
Integrated into 'main-golden', will be available in build *200902030229* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a3ff285dd4c9
User: phejl@netbeans.org
Log: #151176 Groovy debug's break point doesn't work in closure
Comment 4 Petr Hejl 2009-10-15 11:58:22 UTC
Because this works in fact (we just want to make the fix better) lowering to P4.