# Re: Ruby hanging

**URL:** <https://www.ruby-forum.com/t/re-ruby-hanging/97769>\
**Category:** Ruby\
**Created:** [July 10, 2006, 2:37pm UTC](https://www.ruby-forum.com/t/re-ruby-hanging/97769 "2006-07-10T14:37:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [July 10, 2006, 2:37pm UTC](https://www.ruby-forum.com/t/re-ruby-hanging/97769/1 "2006-07-10T14:37:55Z")

</div>

Maybe it’s due to an infinite loop, something like

condition=true  
while condition  
# if you don’t change condition’s value in here, you’ll never  
# get out of that loop  
end

It’s a good idea to print out variable’s values a lot to see what  
a program does,  
so in the example above,

condition=true  
while condition

p ‘I am in the while loop’  
end

will produce a lot of output, but no error message.

Best regards,

Axel
