Grails - display processing / debugging a page in design mode

I have been experimenting with Grails for the past two days, and so far I am really happy with it.

Coming from Rails, the only thing I really missed was the dev-mode debugging information shown after the page was sent.

Here 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 a way to get something like this in Grails? I tried the "debug" plugin, but it is not very useful, as it shows the total processing time.

I know that it’s not difficult to roll something of your own (with the exception of that part of the database statistics), I just wanted to make sure that I did not unnecessarily invent the wheel.

+4
source share
1 answer

I know this is not the answer you are looking for, but you can try tc-Server Developer from SpringSource. There you can see all the information you are looking for. Switching from Ruby on Rails to Grails, I was looking for the same information. Now I am happy with the tc-Server solution.

Watch the video at SpringSource: http://www.springsource.com/products/tcserver/devedition

Perhaps this is the reason SpringSource does not include the output of the Ruby on Rails style to the console. I would still like to include this conclusion, but I can also live without it.

+1
source

Source: https://habr.com/ru/post/1312742/


All Articles