Announcement Announcement Module
No announcement yet.
How do I debug a grails app when using run-app? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I debug a grails app when using run-app?

    I want to debug my grails app when using run-app on the embedded app server, but don't see a way to do that in my STS/GGTS installation.

    I have seen references from web searches that say to select "Run | Debug As | Grails Command (run-app)", but I don't have this menu option? (

    Is it possible?

    Here is what I have for Debug As:
    Attached Files

  • #2
    You need to configure a Grails launch configuration and run it in debug mode.

    1. Go to Run -> Debug Configurations...
    2. In the tree on the left double click on 'Grails'
    It will create a new Grails launch configuration.
    3. In the form on the right:
    a. Give the launch configuration a name
    b. Verify the the selected project is your Grails project
    c. In the Grails Command section type 'run-app'
    4. Apply the configuration.
    5. Press 'Debug'

    This will run your grails application in debug mode.

    I hope it helps,