Wednesday, February 4, 2009

Groovy + IDEA Debugging Tip: Skip Stepping into GDK Classes

Debugging Groovy code in IDEA can be a hassle because you spend more time stepping into and out of classes in the Groovy language rather than your own classes. Nothing like stepping through a whole bunch of "invokeMethod" reflection layers.

You can fix this by telling IDEA not to step into the Groovy framework classes. Open up the Settings, and go to the Debugger->Stepping panel. Using the "Add Pattern..." button, add the patterns "groovy.*" and "org.codehaus.groovy.*" This screenshot is from IDEA 8, but this works fine on 7 too:

February 10, 2009 is the Groovy IDEA shootout at Groovy.MN... please stop by. And, of course, check out the IDEA Refcardz if you haven't yet.

No comments: