Skip to content

Instantly share code, notes, and snippets.

@freddy-dev
Created June 29, 2011 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freddy-dev/1054458 to your computer and use it in GitHub Desktop.
Save freddy-dev/1054458 to your computer and use it in GitHub Desktop.
ruby debugger log
ruby_debugger_output
Fast Debugger (ruby-debug-ide 0.4.16, ruby-debug-base 0.11) listens on 127.0.0.1:39767
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:128:in `<module:Debugger>'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:1:in `<top (required)>'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug19-0.11.6/cli/ruby-debug/processor.rb:1:in `require_relative'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug19-0.11.6/cli/ruby-debug/processor.rb:1:in `<top (required)>'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:6:in `require_relative'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:6:in `<top (required)>'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'
/rubyonrails/projects/child_progress/config/application.rb:7:in `<top (required)>'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.9/lib/rails/commands.rb:28:in `require'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.9/lib/rails/commands.rb:28:in `block in <top (required)>'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.9/lib/rails/commands.rb:27:in `tap'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.9/lib/rails/commands.rb:27:in `<top (required)>'
/rubyonrails/projects/child_progress/script/rails:6:in `require'
/rubyonrails/projects/child_progress/script/rails:6:in `<top (required)>'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide-0.4.16/lib/ruby-debug-ide.rb:112:in `debug_load'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide-0.4.16/lib/ruby-debug-ide.rb:112:in `debug_program'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/gems/ruby-debug-ide-0.4.16/bin/rdebug-ide:87:in `<top (required)>'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/bin/rdebug-ide:19:in `load'
/Users/Freddy/.rvm/gems/ruby-1.9.2-p180/bin/rdebug-ide:19:in `<main>'
Uncaught exception: superclass mismatch for class RemoteInterface
ruby_debugger_log
Vim plugin, 23:31:35: Executing :Rdebugger...
Vim plugin, 23:31:35: Initializing Server object, with variables: hostname: 127.0.0.1, rdebug_port: 39767, debugg
er_port: 39768, runtime_dir: /rubyonrails/config_files/vim, tmp_file: /rubyonrails/config_files/vim/tmp/ruby_debu
gger, output_file: /rubyonrails/config_files/vim/tmp/ruby_debugger_output
Vim plugin, 23:31:35: Starting Server, command: /rubyonrails/projects/child_progress/script/rails server
Vim plugin, 23:31:35: Trying to kill all old servers first
Vim plugin, 23:31:35: Trying to find PID of process on 39767 port, must_get_pid = 0
Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid -
Vim plugin, 23:31:35: PID - , found by 0 repeatsVim plugin, 23:31:35: Trying to find PID of process on 39768 port, must_get_pid = 0
Vim plugin, 23:31:35: Trying to find listener of port 39768
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid - 407Vim plugin, 23:31:35: PID - 407, found by 0 repeats
Vim plugin, 23:31:35: Killing server with pid 407Vim plugin, 23:31:35: Executing command: ruby -e 'Process.kill(9,407)'Vim plugin, 23:31:35: Sleeping 100m...Vim plugin, 23:31:35: Killed server with pid: 407Vim plugin, 23:31:35: Servers are killed, trying to start new servers
Vim plugin, 23:31:35: Executing command: rdebug-ide -p 39767 -- /rubyonrails/projects/child_progress/script/rails
server > /rubyonrails/config_files/vim/tmp/ruby_debugger_output 2>&1 &
Vim plugin, 23:31:35: Executing command: ruby /rubyonrails/config_files/vim/bin/ruby_debugger.rb 127.0.0.1 39767
39768 Vim "/rubyonrails/config_files/vim/tmp/ruby_debugger" posix 1 /rubyonrails/config_files/vim/tmp/ruby_debug
ger_log &
Vim plugin, 23:31:35: Now we need to store PIDs of servers, retrieving them:
Vim plugin, 23:31:35: Trying to find PID of process on 39767 port, must_get_pid = 1
Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid -
Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid -
Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid -
Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid -
Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid -
Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid -
Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'Vim plugin, 23:31:35: Found pid -
Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid - Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid -
Vim plugin, 23:31:35: Trying to find listener of port 39767
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39767 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid - 932
Vim plugin, 23:31:35: PID - 932, found by 15 repeats
Vim plugin, 23:31:35: Trying to find PID of process on 39768 port, must_get_pid = 1
Vim plugin, 23:31:35: Trying to find listener of port 39768
Vim plugin, 23:31:35: Executing command: lsof -i tcp:39768 | grep LISTEN | awk '{print $2}'
Vim plugin, 23:31:35: Found pid - 935
Vim plugin, 23:31:35: PID - 935, found by 0 repeats
Vim plugin, 23:31:35: Server PIDs are: rdebug-ide: 932, ruby_debugger.rb: 935
Vim plugin, 23:31:35: Debugger is successfully started
Vim plugin, 23:31:35: Adding 'break /rubyonrails/projects/child_progress/app/controllers/children_controller.rb:5' to queue
Vim plugin, 23:31:35: Adding 'start' to queue
Vim plugin, 23:31:35: Executing queue
Vim plugin, 23:31:35: Sending a message to ruby_debugger.rb: 'break /rubyonrails/projects/child_progress/app/controllers/children_controller.rb:5++vim-ruby-debugger separator++start'
Vim plugin, 23:31:35: Using system-wide Ruby to send message, the command is: ruby -e "require 'socket'; attempts = 0; a = nil; begin; a = TCPSocket.open('127.0.0.1', 39768); a.puts(%q[break /rubyonrails/projects/child_progress/app/controllers/children_controller.rb:5++vim-ruby-debugger separator++start]);a.close; rescue Errno::ECONNREFUSED; attempts += 1; if attempts < 400; sleep 0.05; retry; else; puts('127.0.0.1:39768 can not be opened'); exit; end; ensure; a.close if a && !a.closed?; end; "
Vim plugin, 23:31:35: Command has returned following output:
ruby_debugger
<breakpointDeleted no="1"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment