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

Breakpoints aren't working on NetBeans for dynamically loaded Groovy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.15
    • Fix Version/s: None
    • Component/s: bytecode
    • Labels:
      None

      Description

      Greetings,
       
      I am using Groovy 2.4.15 under NetBeans 8.2 and Java 8 on a 64 bit Linux box.
       
      I am dynamically loading Groovy with the following code:
       
      if (groovyLoader == null)
      groovyLoader = new GroovyClassLoader(GroovyClass.class.getClassLoader());
      groovyClass = groovyLoader.parseClass(new GroovyCodeSource(new File(path + sourceFile)), false);
       
       
      Doing it this way, when debugging the loaded class, I am able to set breakpoints from within IntelliJ and it works as expected.  However, NetBeans & VSCode ignore the breakpoints.
       
      I do a similar thing with Java files, and NetBeans & VSCode honors those breakpoints.
       
      There must be something different between dynamically loaded Java and dynamically loaded Groovy.
       
      Thanks.
       
      Blake McBride

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              blake1024 Blake McBride
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: