Announcement Announcement Module
Collapse
No announcement yet.
GGTS 3.2.0.M1 - remote debug doesn't stop at groovy controller breakpoints Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • GGTS 3.2.0.M1 - remote debug doesn't stop at groovy controller breakpoints

    Hi,

    I am using GGTS 3.2.0.M1 with Grails 2.1.1.

    I am trying to remote debug my application.
    I set breakpoints in a controller but the debugger doesn't break.

    I see that the blue circle with no check mark on it.
    That tells me that the class what not loaded.

    - I checked that the project is a Grails project.
    - I also refreshed the dependencies.

    The .project file contains the groovy nature:

    <natures>
    <nature>org.grails.ide.eclipse.core.nature</nature>
    <nature>org.eclipse.jdt.groovy.core.groovyNature </nature>
    <nature>org.eclipse.wst.common.project.facet.core. nature</nature>
    <nature>org.eclipse.jdt.core.javanature</nature>
    <nature>org.eclipse.wst.common.modulecore.ModuleCo reNature</nature>
    <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
    </natures>

    The .classpath file contains the controllers' sources:

    <classpathentry kind="src" path="src/java"/>
    <classpathentry kind="src" path="src/groovy"/>
    <classpathentry kind="src" path="grails-app/conf"/>
    <classpathentry kind="src" path="grails-app/controllers"/>
    <classpathentry kind="src" path="grails-app/domain"/>
    <classpathentry kind="src" path="grails-app/services"/>
    <classpathentry kind="src" path="grails-app/taglib"/>
    <classpathentry kind="src" path="grails-app/utils"/>
    <classpathentry kind="src" path="test/integration"/>
    <classpathentry kind="src" path="test/unit"/>
    ...

    Everything seems to be in sync with the remote version.

    Can someone please advise?

    Thanks,
    Shai
    Last edited by shaiw; Dec 16th, 2012, 10:21 AM.

  • #2
    How are you running the application? Is it in a tomcat? using grails run-app? Is it a truly remote app or is it just running as an external process on your physical machine?

    Comment


    • #3
      Hi Andrew,

      I finally managed to debug the application.
      The application runs on JBoss 4.2.3 on a remote computer.

      The problem is this:
      I build the project externally via Maven.
      Then, I refresh the project in GGTS and also refresh the dependencies.
      In some cases old breakpoints lose their validity.
      I need to remove and reset the breakpoint at the same location.
      Only then the breakpoint works.

      I am not sure if it's random or how to reproduce it for sure.
      I hope it focuses you on a potential problem..

      Thanks,
      Shai

      Comment


      • #4
        It is likely that the external compile and refresh of your project confuses things. You might be able to fix things by importing your grails project as a maven project and running the maven build inside GGTS.

        Comment

        Working...
        X