I have also tried using a backup copy of the code and following the same steps, i also get the following error when trying to load up the debugger: So i try double clicking in the gutter of my script to create a breakpoint, RubyMine pauses for a second and then i get:ĭ:\Ruby\Ruby193\bin\ruby.exe -e $stdout.sync=true $stderr.sync=true load($0=ARGV.shift) D:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.17.beta14/bin/rdebug-ide -dispatcher-port 55451 -port 55452 - S:/code/account_groups/script/rails consoleįast Debugger (ruby-debug-ide 0.4.17.beta14, ruby-debug-base 0.11.30.pre10) listens on 127.0.0.1:55452ĭ:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.1.4/lib/ruby_debug.so: warning: already initialized constant VERSIONĥ992: Exception in DebugThread loop: undefined method `errmsg' for #ĭ:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.1.4/lib/ruby-debug/command.rb:160:in `errmsg'įrom: D:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.1.4/lib/ruby-debug/commands/breakpoints.rb:81:in `execute'įrom: D:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.17.beta14/lib/ruby-debug-ide/ide_processor.rb:89:in `block in process_commands'įrom: D:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.17.beta14/lib/ruby-debug-ide/ide_processor.rb:86:in `catch'įrom: D:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.17.beta14/lib/ruby-debug-ide/ide_processor.rb:86:in `process_commands'įrom: D:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.17.beta14/lib/ruby-debug-ide.rb:160:in `block in start_control' And puts "test" #test => nil works again. Rubymine debug install#To my Gemfile, and run a bundle install from the console.įinally, i open the debugger inside RubyMine (SHIFT F9). So, following SO, I comment out debugger from Gemfile and run Reading here, however, it seems debugger is not sufficient. Looks like we have debugger in favour of ruby-debug. Gem 'ruby-prof', :require => false #, :git => 'git:///wycats/ruby-prof.git' #gem 'ruby-debug-base19', :require => false I click cancel and check my Gemfile, the only ones related to debugging present are: The gem ruby-debug-base19x required by the debugger is currently not installed. I now try the debugger ( SHIFT F9) and see the message: I then ensure Ruby is working: Tools > IRB Console > puts "test" #test => nil - Works idea directory) and am prompted to run bundle install which I do (from console) as requested. I open up the directory in RubyMine (remembering first to delete the. I then try to begin working with my team's ruby code. having removed all previous ruby and gem directories) install of Ruby 1.9.3, Ruby Gems, DevKit and Rails (following this guide) - that works fine. So, I am struggling to get debugging working in RubyMine 4.5 using Ruby 1.9.3, my steps are as follows:įresh (i.e. The BAD example command copied from RubyMine dialog box: rdebug-ide -host 0.0.0.My apologies for the length of the question, but I want to make it clear I am not making any stupid mistakes! WARNING: The RubyMine "Ruby Remote Debug" dialog box provides a helpful but INCORRECT example for starting the debugger server This will tell the debugger server on your vagrant guest toĮxecute bin/rails s and establish communication with that rails process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |