Running grails app in eclipse actually is quite simple if... you know how.
Here's how :
- Import your grails app as existing project in eclipse
- Find {app-name}.launch in the project root and right click select Run As and the .launch configuration name
- There's all to it :)
If you want to know how to debug grails app, see my previous post.
Tuesday, February 17, 2009
Debugging Grails
Debugging grails almost got me crazy. I followed as said, trying it many times. At last google led me to this link which shed some light.
Let's get to the point, here's how to enable debugging grails (groovy) :
- Add JDK's tools.jar to your project build path.
Yep, that's all.
Or I'll be more specific here :
- Open your project properties, go to Java Build Path
- On tab Libraries, Add External JARs.
- Pick tools.jar from your {JDK_HOME}/lib
Fyi, I'm using grails 1.0.4 and groovy eclipse 1.5.7.20081120_2330.
Let's get to the point, here's how to enable debugging grails (groovy) :
- Add JDK's tools.jar to your project build path.
Yep, that's all.
Or I'll be more specific here :
- Open your project properties, go to Java Build Path
- On tab Libraries, Add External JARs.
- Pick tools.jar from your {JDK_HOME}/lib
Fyi, I'm using grails 1.0.4 and groovy eclipse 1.5.7.20081120_2330.
Subscribe to:
Posts (Atom)