# Can't able to debug my application

**URL:** <https://www.ruby-forum.com/t/cant-able-to-debug-my-application/193414>\
**Category:** Rails\
**Created:** [August 17, 2010, 11:13am UTC](https://www.ruby-forum.com/t/cant-able-to-debug-my-application/193414 "2010-08-17T11:13:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![periyasamy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Post date:** [August 17, 2010, 11:13am UTC](https://www.ruby-forum.com/t/cant-able-to-debug-my-application/193414/1 "2010-08-17T11:13:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![periyasamy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Post date:** [August 17, 2010, 11:34am UTC](https://www.ruby-forum.com/t/cant-able-to-debug-my-application/193414/2 "2010-08-17T11:34:40Z")

</div>

On 17 August 2010 10:13, Periyasamy R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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

---

<div class="post-metadata">

**Author:** ![periyasamy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Post date:** [August 17, 2010, 11:49am UTC](https://www.ruby-forum.com/t/cant-able-to-debug-my-application/193414/3 "2010-08-17T11:49:24Z")

</div>

Colin L. wrote:

> On 17 August 2010 10:13, Periyasamy R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> 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

Hi,

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.

---

<div class="post-metadata">

**Author:** ![periyasamy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Post date:** [August 17, 2010, 12:00pm UTC](https://www.ruby-forum.com/t/cant-able-to-debug-my-application/193414/4 "2010-08-17T12:00:26Z")

</div>

On 17 August 2010 10:49, Periyasamy R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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

---

<div class="post-metadata">

**Author:** ![periyasamy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Post date:** [August 17, 2010, 12:14pm UTC](https://www.ruby-forum.com/t/cant-able-to-debug-my-application/193414/5 "2010-08-17T12:14:26Z")

</div>

Colin L. wrote:

> On 17 August 2010 10:49, Periyasamy R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> 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 %\>   
  
\<%=h "Test - " + @tstarttime %\>

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

---

<div class="post-metadata">

**Author:** ![periyasamy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3d9bf3/32.png) [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Post date:** [August 17, 2010, 1:02pm UTC](https://www.ruby-forum.com/t/cant-able-to-debug-my-application/193414/6 "2010-08-17T13:02:29Z")

</div>

On 17 August 2010 11:14, Periyasamy R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > Can you post the erb code around a debugger statement that is not  
> > The below lines are getting debugged,  
> > \<% @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
