Is there opportunity to debug http request?

Appear problem when I try to debug http response with default Ruby lib Net::HTTP

Example. I have such piece of code

url = URI.parse("") # any http resource

req = Net::HTTP.get_response(url) # the same situation with get method of the Net::HTTP module

p req


I set breakpoint on the second line and try to execute it in the Interactive console and got  "Timeout: evaluation took longer than 10 seconds."

But when I set breakpoint on the third line (or press F8 to make Step Over) I got correct value in req => #<Net::HTTPOK 200 OK readbody=true>

Why such situation appear? In such way I can't debug response in my code. Could you help me?


OS - Ubuntu 16.04 x64

RubyMine version - 2017.2.4

Ruby version - 2.4.2p198

ruby-debug-ide (0.6.1.beta10)


Thank you in advance


1 comment

I have the same issue with Ruby 2.4. With 1.9 works fine


Please sign in to leave a comment.