Debugging in Ruby

hi everybody

I a new in Ruby P.ming , I want to know what are the benefits of
using Debugging technique.

by create breakpoint …

Yousef J. wrote:

hi everybody

I a new in Ruby P.ming , I want to know what are the benefits of
using Debugging technique.

by create breakpoint …

The benefits of debugging are not particular to programming in any
language. If you have written some code you want to be able to test it.
Having a window into seeing what is going on in the code is very helpful
in eliminating faults and getting the code to work as required.

Check out http://bashdb.sourceforge.net/ruby-debug.html

David

Yousef Programmer wrote:

hi everybody

I a new in Ruby P.ming , I want to know what are the benefits of
using Debugging technique.

by create breakpoint …

A breakpoint allows you to stop execution of your code inside a
debugger, and
thus you can inspect variables, the call stack and execution flow to
determine
where the code is not executing as you might expect it to.

You can also step through the execution of your code one line at a time
after
the breakpoint, step into and over function call, inspect return values,
and a
lot more.

debugging is (usually) used to analyze code to fix bugs, but you can
also use a
debugger to gain deeper knowledge of code someone else wrote.


Kind Regards,
Rajinder Y.

http://DevMentor.org
Do Good ~ Share Freely

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs