# Is there a way in ./script/console to get the SQL debugging showing? (i.e. like you see when you r

**URL:** <https://www.ruby-forum.com/t/is-there-a-way-in-script-console-to-get-the-sql-debugging-showing-i-e-like-you-see-when-you-r/155483>\
**Category:** Rails\
**Created:** [December 12, 2008, 8:11am UTC](https://www.ruby-forum.com/t/is-there-a-way-in-script-console-to-get-the-sql-debugging-showing-i-e-like-you-see-when-you-r/155483 "2008-12-12T08:11:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [December 12, 2008, 8:11am UTC](https://www.ruby-forum.com/t/is-there-a-way-in-script-console-to-get-the-sql-debugging-showing-i-e-like-you-see-when-you-r/155483/1 "2008-12-12T08:11:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [December 12, 2008, 8:51am UTC](https://www.ruby-forum.com/t/is-there-a-way-in-script-console-to-get-the-sql-debugging-showing-i-e-like-you-see-when-you-r/155483/2 "2008-12-12T08:51:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [December 12, 2008, 11:01am UTC](https://www.ruby-forum.com/t/is-there-a-way-in-script-console-to-get-the-sql-debugging-showing-i-e-like-you-see-when-you-r/155483/3 "2008-12-12T11:01:50Z")

</div>

ok - thanks

On Fri, Dec 12, 2008 at 5:49 PM, Eifion Bedford \<

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [December 12, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/is-there-a-way-in-script-console-to-get-the-sql-debugging-showing-i-e-like-you-see-when-you-r/155483/4 "2008-12-12T16:27:05Z")

</div>

ActiveRecord::Base.logger = Logger.new(STDOUT)
