Debugging Grails App
Hi, please excuse me if i'm being totally ignorant but i am a complete beginner! I have created a grails app on the command line but i know wish to be able to debug the app using IntelliJ IDEA. To do this i have gone down this route: New Project>Create Java project from existing sources...
I kept the "Project file location" as the same directory where the app was created in cmd. Similarly I set the src directory the same eg F:\Grails\GrailsApps\shopping-cart\src.
I select the libraries and modules that are automatically detected. IntelliJ picks up the Grails and Spring faucets in the project and I continue. The project seems to have been created perfectly. This screen shot just shows and open file to highlight this.
However, when I attempt to create a run/debug configuration I still cannot run/debug my project. Here is the configuration i use:
When i attempt to run/debug the application I get the same error: "Error running Checkout: Grails are not configured".
If any of you could help me on my feet I would really appreciate it. Thanks for your time.
Pat
Please sign in to leave a comment.
Hi,
Did you add a Grails facet to you project? Just go to project structure -> modules, select the module you want, press the + icon, and select the Grails facet. Here you can configure the Grails SDK. Hope that helps!
Erik
Hi Erik, thanks for your help. i had done much in the project so i decided to start from scratch in intelliJ and its going fine so far! thanks again for your help!
pat
Sure, no problem! Good luck with the Grails application!