Results 1 to 4 of 4

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

  1. #1
    Join Date
    Dec 2011
    Posts
    23

    Default 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 at 09:21 AM.

  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    747

    Default

    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?
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3
    Join Date
    Dec 2011
    Posts
    23

    Default

    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

  4. #4
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    747

    Default

    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.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •