Grails - showing page processing/render debug information in development mode

Posted by ovokinder on Stack Overflow See other posts from Stack Overflow or by ovokinder
Published on 2010-06-14T09:48:09Z Indexed on 2010/06/14 9:52 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

I've been experimenting with Grails for the past two days and, so far, I'm really happy with it.

Coming from Rails, the only thing I've really been missing here is the dev-mode debug information shown after the page has been served.

This is what I mean:

Processing UsersController#show (for 127.0.0.1 at 2010-06-14 10:28:44) [GET]
  Parameters: {"id"=>"2"}
  User Load (0.0ms)   SELECT * FROM "users" WHERE ("users"."id" = 2) 
Rendering template within layouts/users
Rendering users/show
Completed in 24ms (View: 5, DB: 0) | 200 OK [http://localhost/users/2]

Is there any way to get something similar in Grails? I've tried the "debug" plugin but its not very useful as it only shows the total processing time.

I know it's not hard too roll something of my own (except for that database stats part), I just wanted to make sure I wasn't unnecessarily reinventing the wheel.

© Stack Overflow or respective owner

Related posts about grails

Related posts about debug