From: Rick DeNatale Date: 2009-10-21T22:42:49+09:00 Subject: Re: rdebug usage On Tue, Oct 20, 2009 at 9:23 PM, David Schulberg wrote: > Hi, > > I have a couple of questions about using rdebug > 1. When you are passing parameters to a ruby script how do you do that > when you call your ruby script with rdebug? From the example given by rdebug --help Usage: rdebug [options] -- In other words after the name of the script use a double - then the parameters for the script. > 2. When control passes from one ruby script to another in an application > how can breakpoints be set within a nested structure of ruby scripts? with the rdebug breakpoint command b path/to/some_ruby_script.rb:42 The file does not need to have been previously loaded. where 42 is the line number where you want the breakpoint set. There are also extensions to various editors which allow breakpoints to be set from the editor after initiating a session with the debugger. For example the RubyAmp textmate bundle allows this. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale