Forum: Ruby on Rails is there a way in ./script/console to get the SQL debugging showing??? (i.e. like you see when you r

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Greg H. (Guest)
on 2008-12-12 09:11
(Received via mailing list)
is there a way in ./script/console to get the SQL debugging showing???
(i.e.
like you see when you run ./script/server in development mode)

thanks
Eifion Bedford (Guest)
on 2008-12-12 09:51
(Received via mailing list)
You could always have two terminal windows open, one with script/
console open and another with script/server. Any db calls you make
will appear in the script/server window.

Eifion
Greg H. (Guest)
on 2008-12-12 12:01
(Received via mailing list)
ok - thanks

On Fri, Dec 12, 2008 at 5:49 PM, Eifion Bedford <
Andrew P. (Guest)
on 2008-12-12 17:27
(Received via mailing list)
ActiveRecord::Base.logger = Logger.new(STDOUT)
This topic is locked and can not be replied to.