Results 1 to 2 of 2

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

  1. #1
    Join Date
    Apr 2006
    Posts
    21

    Default 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? (http://grails.1312388.n4.nabble.com/...td1578797.html)

    Is it possible?

    Here is what I have for Debug As:
    no_debug_setting.jpg

  2. #2
    Join Date
    Dec 2011
    Posts
    23

    Default

    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,

    Shai

Posting Permissions

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