Enabling debugger in initializers

Is it possible to get the debugger to run when initializers are being
executed?

On Sat, Feb 13, 2010 at 1:46 AM, Ralph S. [email protected]
wrote:

Is it possible to get the debugger to run when initializers are being
executed?

The -u option on script/server to turn on the debugger is too late,
since it doesn’t seem to bring the debugger in until after
initializers run.

but you should be able to do something like

rdebug script/server

which will give you control in the debugger at the beginning.


Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: Rick DeNatale - Developer - IBM | LinkedIn