GRECLIPSE
  1. GRECLIPSE
  2. GRECLIPSE-919

sts debugging unable to find groovy source when debugging remote application

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Environment:
      Ubuntu 10.04 on 64 bit
    • Number of attachments :
      0

      Description

      Unable to get debugging of remote groovy classes working when debugging is remote. Clicking on a groovy script and selecting debug as script does work as expected.

      However, defining a spring bean in a spring mvc application with syntax along the lines of

      <lang:groovy id="foo" refresh-check-delay="10000"
      script-source="classpath:com/foo/Foo.groovy" >
      <lang:property name="bar"><value>bar</value>
      </lang:property>
      </lang:groovy>

      and putting a breakpoint in the groovy file, starting tomcat, and connecting with the debugger, it does stop at that breakpoint and all functionality seems to be there, but it can't find the source. Explicitly adding the directory with the source in it has almost no effect. I say almost because it does flicker briefly like it has the source, but then goes back to the "Source not found." page with the "Edit Source Lookup Path..." button.

        Activity

        Hide
        Andrew Eisenberg added a comment -

        I have a feeling that this is something related to GRECLIPSE-624.

        Show
        Andrew Eisenberg added a comment - I have a feeling that this is something related to GRECLIPSE-624 .
        Hide
        Andrew Eisenberg added a comment -

        My initial guess is that the script gets loaded this way:

        Class clazz = classLoader.parseClass(readFileAsString("../src/UnderTest.groovy"));
        

        Instead of this way:

        Class clazz = classLoader.parseClass(readFileAsString("../src/UnderTest.groovy"), "../src/UnderTest.groovy");
        

        If so, this is something that should be fixed in Spring. I'll have a deeper look to see if this is really the case.

        Show
        Andrew Eisenberg added a comment - My initial guess is that the script gets loaded this way: Class clazz = classLoader.parseClass(readFileAsString( "../src/UnderTest.groovy" )); Instead of this way: Class clazz = classLoader.parseClass(readFileAsString( "../src/UnderTest.groovy" ), "../src/UnderTest.groovy" ); If so, this is something that should be fixed in Spring. I'll have a deeper look to see if this is really the case.
        Hide
        Andrew Eisenberg added a comment -
        Show
        Andrew Eisenberg added a comment - Very likely related to this: https://jira.springframework.org/browse/SPR-7113
        Andrew Eisenberg made changes -
        Field Original Value New Value
        Assignee Andrew Eisenberg [ werdna ]
        Andrew Eisenberg made changes -
        Component/s Run/Debug [ 13153 ]
        Andrew Eisenberg made changes -
        Labels wish
        Andrew Eisenberg made changes -
        Component/s Testing, Running, Debugging [ 13145 ]

          People

          • Assignee:
            Andrew Eisenberg
            Reporter:
            Jeremy Meyer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: