Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9076

Debugger Step Into doesn't work in Groovy-compiled classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.6
    • 2.4.22, 2.5.15, 3.0.8, 4.0.0-alpha-3
    • None
    • None
    • $ java -version
      java version "1.8.0_211"
      Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

    Description

      Please see https://github.com/dovchinnikov/debug-groovy-bug

      GC.groovy
      package foo.bar
      
      class GC {
      
          GC() {
              int i = 42
          }
      
          int getStuff() {
              return 70
          }
      }
      
      GMain.groovy
      package foo.bar
      
      class GMain {
      
          static void main(String[] args) {
              new GC().stuff // set breakpoint here
          }
      } 
      

      This issue is reproducible with plain raw jdb:

      $ ./gradlew clean classes
      $ jdb -classpath build/classes/groovy/main:<path to groovy-2.5.6.jar>
      

      Inside jdb prompt:

      > sourcepath src/main/groovy
      > exclude java.*,sun.*,com.sun.*,groovy.*,org.codehaus.groovy.*,org.apache.groovy.*
      > stop in foo.bar.GMain.main
      > run foo.bar.GMain
      

      Then step until the end and observe the behaviour.

      Attachments

        Issue Links

          Activity

            People

              emilles Eric Milles
              daniilo Daniil Ovchinnikov
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: