Aptana 3 ruby debugger - Exception in DebugThread loop: undefined method `is_binary_data?'

后端 未结 3 1240
情歌与酒
情歌与酒 2020-12-29 00:45

I\'m trying to debug simple ruby file in Aptana 3.

class HelloWorld
  
def initialize()
    
end
  
def greet()
  puts "hello world"
end
end

h=Hell         


        
3条回答
  •  灰色年华
    2020-12-29 01:27

    I was using exabug's solution for a while but this awful bug in such a critical feature of a programming language like debugging didn't let me rest, so I investigated it a little bit closer, and that's what I found out.

    Firstly, ruby-debug-ide implemented a workaround to the problem, which should be included in beta versions of the gem so you may give them a try. See here to find out what versions are available. The latest beta crashed on my computer, though, and I haven't tested the rest.

    Secondly, the problem exists because is_binary_data? method has been moved to a standard library called Syck. So adding require 'syck' to xml_printer.rb is in my opinion a cleaner solution than both the one implemented by ruby-debug-ide and proposed by exabugs.

    I'm quite new to Ruby but I must say a bug which completely prevents me from debugging anything, which remains unfixed in stable versions for a year, doesn't make a very good impression about the whole language.

提交回复
热议问题