ruby-debug / ruby-debug-ide

An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans and RubyMine.
https://www.jetbrains.com/ruby/features/ruby_debugger.html
Other
370 stars 83 forks source link

__END__ and DATA do not work with ruby-debug-ide #185

Open snowe2010 opened 4 years ago

snowe2010 commented 4 years ago

Running the debugger when attempting to use the __END__ and DATA functionality of results in this error:

/Users/tyler.thrailkill/.rbenv/versions/2.5.3/bin/ruby /Users/tyler.thrailkill/.gem/ruby/2.5.0/gems/ruby-debug-ide-0.8.0.beta19/bin/rdebug-ide --key-value --step-over-in-blocks --disable-int-handler --evaluation-timeout 10 --evaluation-control --time-limit 100 --memory-limit 0 --rubymine-protocol-extensions --port 57658 --host 0.0.0.0 --dispatcher-port 57659 -- /Users/tyler.thrailkill/RubymineProjects/codegolf/advent_of_code/2019/day5.rb
Fast Debugger (ruby-debug-ide 0.8.0.beta19, debase 0.3.0.beta19, file filtering is supported, block breakpoints supported, smart steps supported, obtaining return values supported, partial obtaining of instance variables supported) listens on 0.0.0.0:57658
Uncaught exception: uninitialized constant DATA
Did you mean?  Data
    /Users/tyler.thrailkill/RubymineProjects/codegolf/advent_of_code/2019/day5.rb:1:in `<top (required)>'

Note that I'm running from RubyMine, and it's a single file, not any sort of project.

ViugiNick commented 4 years ago

@snowe2010 Could you please share a sample for me to reproduce the issue

snowe2010 commented 4 years ago
p DATA

__END__
hi
derrelldurrett commented 1 year ago

I just hit this, and it would be really awesome if this got fixed, since DATA is an excellent tool for rapid development of small stuff.