Debugging in Ruby

  • Thread starter Yousef Programmer
  • Start date
Y

Yousef Programmer

hi everybody


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

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

David Schulberg

Yousef said:
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 http://bashdb.sourceforge.net/ruby-debug.html

David
 
R

Rajinder Yadav

Yousef said:
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
Do Good ~ Share Freely
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,167
Messages
2,570,910
Members
47,453
Latest member
MadelinePh

Latest Threads

Top