Re: Ruby hanging

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

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