# Is there a way to drop into debug view mode after an exception?

**URL:** <https://www.ruby-forum.com/t/is-there-a-way-to-drop-into-debug-view-mode-after-an-exception/148809>\
**Category:** Rails\
**Created:** [September 17, 2008, 9:14am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-drop-into-debug-view-mode-after-an-exception/148809 "2008-09-17T09:14:33Z")\
**Posts on this page:** 1\
**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:** [September 17, 2008, 9:14am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-drop-into-debug-view-mode-after-an-exception/148809/1 "2008-09-17T09:14:33Z")

</div>

Hi,

I know how to use Rails debugging via entering a “debugger” statement.

Question - Is there a way however to drop into the debugger mode after  
an exception has occurred? and effectively back back one step just  
prior to the exception occurs, and then you can query the variables  
etc. That is then a way to (a) drop from “script/server” mode to  
“debugger” shell, and (b) go back to the point just before the  
exception?

Thanks in advance
