I wish to debugging my app.I install gem and start my console by using --debug option . But i don''t know how to use it. Give me some helpful starting for core . I search and get some good pages, but when i fire commands ,not working. How trace methods ? How to trace variable ? Thanks Regards Fahim Babar Patel -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/h0W0UgDOceEJ. For more options, visit https://groups.google.com/groups/opt_out.
You should use "pry" gem. It is much easier. On Wed, Oct 10, 2012 at 10:57 AM, Fahim Patel <pafahim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I wish to debugging my app.I install gem and start my console by using > --debug option . > But i don''t know how to use it. > > Give me some helpful starting for core . > I search and get some good pages, but when i fire commands ,not working. > > How trace methods ? > How to trace variable ? > > Thanks > > Regards > Fahim Babar Patel > > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/h0W0UgDOceEJ. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
asw 1.Is pry is best for debugging in your experience . 2 .Can it work same as we work on console ? or we have to learn some new command ? 3. Can we debug our controller and model methods line by line ? I know i have lots of questions ? Just give me one line answer which i can understood. jajakallah On Wednesday, October 10, 2012 11:27:56 AM UTC+5:30, Fahim Patel wrote:> > I wish to debugging my app.I install gem and start my console by using > --debug option . > But i don''t know how to use it. > > Give me some helpful starting for core . > I search and get some good pages, but when i fire commands ,not working. > > How trace methods ? > How to trace variable ? > > Thanks > > Regards > Fahim Babar Patel > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/UMuSvA6v_A0J. For more options, visit https://groups.google.com/groups/opt_out.
The answer of first and third question is yes. It also works on console. No new tool or commands needed to be learned. On Wed, Oct 10, 2012 at 11:09 AM, Fahim Patel <pafahim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> asw > > 1.Is pry is best for debugging in your experience . > > 2 .Can it work same as we work on console ? or we have to learn some new > command ? > > 3. Can we debug our controller and model methods line by line ? > > > I know i have lots of questions ? > Just give me one line answer which i can understood. > > jajakallah > > > > On Wednesday, October 10, 2012 11:27:56 AM UTC+5:30, Fahim Patel wrote: >> >> I wish to debugging my app.I install gem and start my console by using >> --debug option . >> But i don''t know how to use it. >> >> Give me some helpful starting for core . >> I search and get some good pages, but when i fire commands ,not working. >> >> How trace methods ? >> How to trace variable ? >> >> Thanks >> >> Regards >> Fahim Babar Patel >> >> > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/UMuSvA6v_A0J. > > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
i have one more problem can u solve this... This question is related to cucumber and capybara. I am handling three form in one page . It means i am handling three model. this three are connected to each other using association. I am using nested form concept. In development stage working perfectly. When i write feature file to test , i dont know how to fill my inner forms text field. I will explain u . Assume three model a,b,c. a[b][c][0][attibutes] # name generated by rail is this when i write this step in file fill_in "a[b][c][0][attibutes]" , :with=>testing i get error cannot fill in, no text field, text area or password field with id, name, or label a[b][c][0][attibutes] Hope u all understood problem On Wednesday, October 10, 2012 11:27:56 AM UTC+5:30, Fahim Patel wrote:> > I wish to debugging my app.I install gem and start my console by using > --debug option . > But i don''t know how to use it. > > Give me some helpful starting for core . > I search and get some good pages, but when i fire commands ,not working. > > How trace methods ? > How to trace variable ? > > Thanks > > Regards > Fahim Babar Patel > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/nDuPR2YVnwIJ. For more options, visit https://groups.google.com/groups/opt_out.
I am not able to help you in integration testing as I have never done it. Anybody please help him. On Wed, Oct 10, 2012 at 11:45 AM, Fahim Patel <pafahim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i have one more problem can u solve this... > This question is related to cucumber and capybara. > > I am handling three form in one page . It means i am handling three model. > this three are connected to each other using association. > I am using nested form concept. > > In development stage working perfectly. > When i write feature file to test , i dont know how to fill my inner forms > text field. > > I will explain u . > Assume three model a,b,c. > > a[b][c][0][attibutes] # name generated by rail is this > > when i write this step in file > fill_in "a[b][c][0][attibutes]" , :with=>testing > i get error > cannot fill in, no text field, text area or password field with id, name, > or label a[b][c][0][attibutes] > > Hope u all understood problem > > > On Wednesday, October 10, 2012 11:27:56 AM UTC+5:30, Fahim Patel wrote: > >> I wish to debugging my app.I install gem and start my console by using >> --debug option . >> But i don''t know how to use it. >> >> Give me some helpful starting for core . >> I search and get some good pages, but when i fire commands ,not working. >> >> How trace methods ? >> How to trace variable ? >> >> Thanks >> >> Regards >> Fahim Babar Patel >> >> > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/nDuPR2YVnwIJ. > > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.