More Rails stuff.
I was using command line & vim to do some Rails stuff until fingers got tired of switching between files.
So I did a some searches and came up with a short list of IDEs for Rails and tried installing Aptana (currently 3.4.2).
As expected, problems came up despite having:
- Installed git, (on top of ruby/rails/gem)
- Made sure all these are accessible from the Command Prompt
- Installed ruby-debug-base 0.10.4 gem
- Installed ruby-debug-ide 0.4.22 gem
The error in the Console was:
Fast Debugger (ruby-debug-ide 0.4.22, ruby-debug-base 0.10.4) listens on 127.0.0.1:49946
=> Booting WEBrick
=> Rails 3.0.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
9632: Exception in DebugThread loop: wrong number of arguments (0 for 1)
Backtrace:
c:/dev/tools/ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:84:in `read_command'
from: c:/dev/tools/ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:84:in `process_commands'
from: c:/dev/tools/ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:122:in `start_control'
from: c:/dev/tools/ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:103:in `initialize'
from: c:/dev/tools/ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:103:in `new'
from: c:/dev/tools/ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:103:in `start_control'
from: c:/dev/tools/ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:65:in `start_server'
from: c:/dev/tools/ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:69:in Exiting
`prepare_debugger'
from: c:/dev/tools/ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:83:in `debug_program'
from: c:/dev/tools/ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.22/bin/rdebug-ide:110
from: c:/dev/tools/ruby187/bin/rdebug-ide:23:in `load'
from: c:/dev/tools/ruby187/bin/rdebug-ide:23
The main problem is: 9632: Exception in DebugThread loop: wrong number of arguments (0 for 1)
Did some search and turned out I HAD to remove the ruby-debug gem from my app’s Gemfile:
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem ‘ruby-debug’
# gem ‘ruby-debug19’
After commenting out that line above, reran bundle-install on the app, the debugger was working fine.