# Debug session

**URL:** <https://www.ruby-forum.com/t/debug-session/138796>\
**Category:** Rails\
**Created:** [May 27, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/debug-session/138796 "2008-05-27T21:14:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![northwind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ad7895/32.png) [@northwind](https://www.ruby-forum.com/u/northwind)\
**Post date:** [May 27, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/debug-session/138796/1 "2008-05-27T21:14:22Z")

</div>

I am new to rails and ruby – it’s all beautiful. The documentation  
and community are helpful and clear. I thought I’d drop an e-mail to  
the group so it’s here for any other noobs that search for this: I was  
searching on how to get the session information in my views while  
debugging and found the suggestion for \<%= debug session %\>. It  
works, but it can be a bit ugly, and gives all the information in the  
session. If I used \<%= debug session.data %\> I got just the data I  
had placed in the session - formatted the way  
ActionView::Helpers::DebugHelper.debug(object) shows from the API. I  
hope this helps somebody out. Thanks to the Rails community.  
Scott.
