I believe you can easily reproduce the issue. Just take a fresh RubyMine (7.1) — either Mac or Windows version, Ruby 2.2, create simple script:
puts "Hi, i'm gonna break your debugger :)"
user_input = gets
puts "Here should be breakpoint"
Put the breakpoint on the 3-rd line and run Debug session (RubyMine uses ruby-debug-ide
gem).
When you type something in RubyMine console window for the script to read in gets
— program doesn't eat your input saying:
Could not execute statement: current stack frame is unavailable. Pause the process to use console interpreter
What's going on here and how can you debug such Ruby scripts?