Hi, I am not able to debug my *.html.erb file in ruby. The breakpoints leaves when debugging?. Can anybody help me why i can''t do? Regards, Periyasamy.R -- Posted via http://www.ruby-forum.com/. -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 17 August 2010 10:13, Periyasamy Ramachandiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > I am not able to debug my *.html.erb file in ruby. The breakpoints > leaves when debugging?. Can anybody help me why i can''t do?Sorry I do not understand exactly the problem you are seeing. Are you able to break in the controller by entering a line debugger If so then you should be able to break into the erb file with <% debugger %> If neither work then have you installed ruby-debug? Colin -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law wrote:> On 17 August 2010 10:13, Periyasamy Ramachandiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: >> Hi, >> >> I am not able to debug my *.html.erb file in ruby. The breakpoints >> leaves when debugging?. Can anybody help me why i can''t do? > > Sorry I do not understand exactly the problem you are seeing. Are you > able to break in the controller by entering a line > debugger > > > If so then you should be able to break into the erb file with > <% debugger %> > > If neither work then have you installed ruby-debug? > > ColinHi, Thanks for your reply. I can able to do in controller as well as in model. But in .html.erb file i can''t able to debug all the statements. Some lines only getting debugging. I also have the gem ruby-debug-base (0.10.3, 0.10.2) ruby-debug-ide (0.4.9, 0.3.1). But no solution. Thanks, Periyasamy. -- Posted via http://www.ruby-forum.com/. -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 17 August 2010 10:49, Periyasamy Ramachandiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> [...] > Thanks for your reply. I can able to do in controller as well as in > model. But in .html.erb file i can''t able to debug all the statements. > Some lines only getting debugging. I also have the gem > ruby-debug-base (0.10.3, 0.10.2) > ruby-debug-ide (0.4.9, 0.3.1).Can you post the erb code around a debugger statement that is not working? Are you certain that execution is getting to the debugger statement? Colin -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Periyasamy Ramachandiran
2010-Aug-17 10:14 UTC
Re: Re: Can''t able to debug my application
Colin Law wrote:> On 17 August 2010 10:49, Periyasamy Ramachandiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: >> [...] >> Thanks for your reply. I can able to do in controller as well as in >> model. But in .html.erb file i can''t able to debug all the statements. >> Some lines only getting debugging. I also have the gem >> ruby-debug-base (0.10.3, 0.10.2) >> ruby-debug-ide (0.4.9, 0.3.1). > > Can you post the erb code around a debugger statement that is not > working? > Are you certain that execution is getting to the debugger statement? > > ColinHi, FYI. The below lines are getting debugged, <%=h "Test Report " + rcnt.to_s %> </h4> <br/> <%=h "Test - " + @tstarttime %> <br/> But the below lines are not getting debugging, <% @tsteps = TstInstance.get_tstnames_by_tsttype(@tstarttime) %> <% for rows_steps in @tsteps %> <% stepname = rows_steps["steps_name"] %> <% @steptime = rows_steps["steptime"] %> <%end%> I can''t see the debugging in the iteration even if i break point for each line. Thanks, Periyasamy.R -- Posted via http://www.ruby-forum.com/. -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 17 August 2010 11:14, Periyasamy Ramachandiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Colin Law wrote: >> On 17 August 2010 10:49, Periyasamy Ramachandiran <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> >> wrote: >>> [...] >>> Thanks for your reply. I can able to do in controller as well as in >>> model. But in .html.erb file i can''t able to debug all the statements. >>> Some lines only getting debugging. I also have the gem >>> ruby-debug-base (0.10.3, 0.10.2) >>> ruby-debug-ide (0.4.9, 0.3.1). >> >> Can you post the erb code around a debugger statement that is not >> working? >> Are you certain that execution is getting to the debugger statement? >> >> Colin > > > Hi, > > FYI. > > The below lines are getting debugged, > > <%=h "Test Report " + rcnt.to_s %> </h4> <br/> > <%=h "Test - " + @tstarttime %> <br/> > > > But the below lines are not getting debugging, > > <% @tsteps = TstInstance.get_tstnames_by_tsttype(@tstarttime) %> > <% for rows_steps in @tsteps %> > <% stepname = rows_steps["steps_name"] %> > <% @steptime = rows_steps["steptime"] %> > <%end%> > > I can''t see the debugging in the iteration even if i break point for > each line.I still don''t understand exactly what you mean. Describe exactly what you are doing and what happens. I do not see a breakpoint in your code. Colin -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.