groovy

debug info not generated

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.1-rc-1
  • Fix Version/s: 1.5.7, 1.6-beta-2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

We've recently been getting bug reports on JetGroovy plugin not being able to stop at breakpoints in Groovy. After spending some time with this bug, it seems that groovyc ia not generating LineNumberTable in some cases. For example in this simple script:

<code>
def foo()
{
print "Hello World"
}

foo()
</code>

Issue Links

Activity

Hide
Alex Peters added a comment -

same as: GROOVY-2535

Show
Alex Peters added a comment - same as: GROOVY-2535
Hide
Nestor Urquiza added a comment -

Just in case it helps. In a typical Grails controller the scaffold statement will stop groovy compiler from adding "LineNumberTable" to the final compiled class:
<code>
def scaffold = User
<code>

But the below code will be compiled with line information though:
<code>
def scaffold

{scaffold = User}

<code>

Show
Nestor Urquiza added a comment - Just in case it helps. In a typical Grails controller the scaffold statement will stop groovy compiler from adding "LineNumberTable" to the final compiled class: <code> def scaffold = User <code> But the below code will be compiled with line information though: <code> def scaffold {scaffold = User} <code>
Hide
blackdrag blackdrag added a comment -

looks like bad line number information from the parser was causing this

Show
blackdrag blackdrag added a comment - looks like bad line number information from the parser was causing this

People

Vote (5)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: