# Debugging in Ruby

**URL:** <https://rubytalk.org/t/debugging-in-ruby/55629>\
**Category:** ruby-talk\
**Created:** [1 October 2009 17:49 UTC](https://rubytalk.org/t/debugging-in-ruby/55629 "2009-10-01T17:49:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yousef\_Jawwad](https://avatars.discourse-cdn.com/v4/letter/y/a698b9/32.png) [@Yousef\_Jawwad](https://rubytalk.org/u/Yousef_Jawwad)\
**Post date:** [1 October 2009 17:49 UTC](https://rubytalk.org/t/debugging-in-ruby/55629/1 "2009-10-01T17:49:59Z")

</div>

hi everybody

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

by create breakpoint ..........

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![David\_Schulberg](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@David\_Schulberg](https://rubytalk.org/u/David_Schulberg)\
**Post date:** [1 October 2009 23:04 UTC](https://rubytalk.org/t/debugging-in-ruby/55629/2 "2009-10-01T23:04:26Z")

</div>

Yousef Jawwad wrote:

> hi everybody
> 
> I a new in Ruby Programming , 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 [ruby-debug](http://bashdb.sourceforge.net/ruby-debug.html)

David

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Dev\_Guy](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@Dev\_Guy](https://rubytalk.org/u/Dev_Guy)\
**Post date:** [3 October 2009 00:45 UTC](https://rubytalk.org/t/debugging-in-ruby/55629/3 "2009-10-03T00:45:38Z")

</div>

Yousef Programmer wrote:

> hi everybody
> 
> I a new in Ruby Programming , 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 Yadav
> 
> [http://DevMentor.org](http://DevMentor.org)  
> Do Good ~ Share Freely
