I found how to debug with Ruby 1.9:
http://dirk.net/2010/04/17/ruby-debug-with-ruby-19x-and-rails-3-on-rvm/

Sorry for my english, isn't my native language.

When i say 'debug the master branch of rails' I solved like this:

1) clone the rails master branch localy
2) create an app in dev state (ruby path/to/rails new app_name --dev)
3) uncomment in Gemfile the line
   gem 'ruby-debug19', :require => 'ruby-debug'

When you access to the console in your app (ruby /path/to/rails c
--debugger), if you put "debugger" in the rails code in /path/to/rails and
generate a call to that method with the debugger line will work.

NOTE: path/to/rails is the local copy of the rails master branch.

-- 
--
Agustin Viñao

*Paradox*: Life is a mystery. Don't waste time trying to figure it out. / *
Humor*: Keep a sense of humor, especially about yourself. It is a strength
beyond all measure. / *Change*: Know that nothing stays the same.
Web Developer - Ruby - Ruby On Rails - T.D.D.

m: [email protected]
g+: http://profiles.google.com/agustinvinao
l: http://ar.linkedin.com/in/agustinvinao
t: http://twitter.com/agustinvinao
f: http://www.facebook.com/pages/AgustinVinao/145742672139808
w: http://www.agustinvinao.com.ar
f: http://www.facebook.com/saltoaciegas



On Tue, Sep 6, 2011 at 5:58 AM, Frederick Cheung <[email protected]
> wrote:

>
>
> On Sep 5, 8:51 pm, Agustin Nicolas Viñao Laseras
> <[email protected]> wrote:
> > I'm trying to start with Rails contributions. I read the guide (
> http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html) and I
> have
> > some issue, if someone knows of this, I need help:
> > - What version of Ruby do you use when you work in this?
>
> The officially supported versions are 1.8.7 and 1.9.2 if I remember
> correctly. I would start would one of those and make sure that the
> tests passed with both at the end
>
> > - Is possible debug the Rails branch code? (I mean the local copy of the
> > code)
>
> Not sure what you mean by that
>
> Fred
> > - If is possible debug the code, Do you make a new brach each time you
> want
> > to see a bug or issue? (I don't say the moment when you fix the bug o
> make a
> > test, I mean the moment when you try to reproduce it).
> > --
> > --
> > Agustin Viñao
> >
> > Web Developer
> >
> > Ruby - Ruby On Rails - Cucumber
> >
> > m: [email protected]
> > g+:http://profiles.google.com/agustinvinao
> > l:http://ar.linkedin.com/in/agustinvinao
> > t:http://twitter.com/agustinvinao
> > f:http://www.facebook.com/pages/AgustinVinao/145742672139808
> > w:http://www.agustinvinao.com.ar
> > f:http://www.facebook.com/saltoaciegas
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to