Infinite Loop

How about using the ruby profiler??

$> ruby -r profile my_program.rb

It takes forever to run, but the ouput is useful in identifying which
function calls take up most of the processing time, how many times each is
called, etc.

···

From: gm@navel.gr (George Moschovitis)
Reply-To: ruby-talk@ruby-lang.org
To: ruby-talk@ruby-lang.org (ruby-talk ML)
Subject: Infinite Loop
Date: Thu, 5 Jun 2003 23:19:10 +0900

Hi everybody,

I 've written a fairly big ruby programm that works mostly ok.
Sometimes the programm seems to enter an infinite loop :frowning: Does anyone
have a neat idea, how to debug this problem? Perhaps there is a hook
in the interpreter to count recursive method calls that I can exploit
or something similar?

thanks in advance,
George Moschovitis


Protect your PC - get McAfee.com VirusScan Online
Antivirus, VPN, Identity & Privacy Protection | McAfee

^^^^^^^^^^^^^^^^^^^^^^^

That seems to be the problem :slight_smile:

martin

···

Orion Hunter orion2480@hotmail.com wrote:

How about using the ruby profiler??

$> ruby -r profile my_program.rb

It takes forever to run, but the ouput is useful in identifying which