Giter VIP home page Giter VIP logo

debugger's Introduction

Status

Status: Maintained until 8/1/15. Accepting bug fixes only

As debugger is only supported for 1.9 and support for 1.9 has ended, debugger will only be maintained until 8/1/15. After this date, this gem will have no more releases. Use of Ruby 2.X is recommended as the Ruby core team has advised.

Description

A fork of ruby-debug(19) that works on 1.9.2 and 1.9.3 and installs easily for rvm/rbenv rubies. ruby >= 2.0 are not supported - see below.

Build Status

Install

$ gem install debugger

# If install fails, try passing headers path
$ gem install debugger -- --with-ruby-include=PATH_TO_HEADERS

For Windows install instructions, see OLD_README.

Supported Rubies

On install, debugger tries to find your ruby's headers. If it's unable to find them and your ruby is a patch release, it will use headers included with debugger-ruby_core_source. For the list of 1.9.X rubies supported by debugger see here. If your ruby is not an official patch release i.e. head, dev or an rc, you are responsible for having headers and setting them with --with-ruby-include.

Usage

Wherever you need a debugger, simply:

require 'debugger'; debugger

To use with bundler, drop in your Gemfile:

gem 'debugger'

Configuration

At initialization time, debugger loads config files, executing their lines as if they were actual commands a user has typed. config files are loaded from two locations:

  • /.rdebugrc (/rdebug.ini for windows)
  • $PWD/.rdebugrc ($PWD/rdebug.ini for windows)

To see debugger's current settings, use the set command.

Getting Started

After installing the debugger gem, you can create a test file to try out the debugger functionality. Save this example to a file and run it with ruby:

require 'debugger'

x = 4
debugger
y = 5

Running the above code as a file in Ruby (e.g., ruby test-debug.rb) will cause debugger to break code execution and give you an interactive console on the line "debugger". You can type "step" to dive into the line of code or type "next" to stay at the same level and process the line you're on. You can also make any IRB style commands you want to inspect or modify the code. Typing "continue" will resume code execution until the next "debugger" line is encountered, if any.

Using Commands

For a list of commands:

(rdb: 1) help

Most commands are described in rdebug's man page

$ gem install gem-man
$ man rdebug

Remote Debugging

To debug a separate process remotely (such as unicorn) try:

  Debugger.wait_connection = true
  Debugger.start_remote
  debugger

Then you can do

 $ rdebug -c

More documentation

Some thorough documentation of debugger is found with this bashdb tutorial. For emacs and debugger usage, see another bashdb tutorial

Reason for Fork

  • ruby-debug19 maintainer isn't maintaining:
    • Despite patches from ruby core, no gem release in 2+ years! - 9/1/09.
    • Requests to release a known working 1.9.3 version have been ignored.
    • Doesn't respond to rubyforge issues and doesn't have github issues open.
  • Current install is painful. Requires either manually downloading gems from rubyforge and installing with compiler flags or recompiling ruby.
  • We need a decent ruby debugger for future rubies!

What's different from ruby-debug19

  • Major
    • Works on 1.9.2 and 1.9.3
      • 1.9.2 points to ruby-debug-base19-0.11.25 headers
      • 1.9.3 points to ruby-debug-base19-0.11.26 headers
    • Install painlessly for rvm and rbenv rubies i.e. no compiler flags needed
    • No downloading ruby source during install - was behavior of old ruby_core_source dependency
    • Add output adapters, Printers, to support output besides plain text e.g. xml
    • A new and improved test suite
    • Passing tests are up on travis-ci
    • Fix several bugs
      • Fix LocalJumpError caused by using proc in extconf.rb
      • Fix where command failing at top level
      • See changelog for more
  • Minor
    • The gem name matches the module namespace, Debugger, and main required file, debugger.
    • autolist and autoeval enabled by default
    • ruby-debug-base19 and ruby-debug19 are released as one gem
    • Rake tasks have been updated
    • No more $LOAD_PATH manipulation or runtime code outside of lib
    • man page available via gem-man
    • Test helpers for third-party debugger libraries can be accessed from debugger/test. See debugger-xml for an example

Issues

Please report them on github.

Known Issues

  • Only 1.9.2 and 1.9.3 are supported. For 2.X rubies, consider using byebug.
  • If you're interested in porting debugger to ruby2, see this checklist. Note an old attempt at porting it lives at debugger2.
  • If you place a debugger call at the end of a block, debugging will start at the next step and outside of your block. A simple work-around is to place a meaningless step (i.e. puts "STAY") at the end of your block and before debugger.

Contributing

See here for contribution policies. Let's keep this working for the ruby community!

Related projects

Links

License

Licensing due to the complicated forking history of this project. Licensing is BSD throughout most of the repository except for portions of emacs/, doc/ and old_scripts/ which are GPL.

Credits

  • Thanks to the original authors: Kent Sibilev and Mark Moseley
  • Thanks to astashov for bringing in a new and improved test suite, adding printers support and various bug fixes.
  • Thanks to windwiny for starting the port to 2.0.0
  • Contributors: ericpromislow, jnimety, adammck, hipe, FooBarWidget, aghull, deivid-rodriguez, tessi, os97673, arthurnn
  • Fork started on awesome @relevance fridays!

TODO

  • Port some of bashdb's docs
  • Use ~/.debuggerrc and bin/debugger and gracefully deprecate rdebug*
  • Work with others willing to tackle jruby, rubinius or windows support

debugger's People

Contributors

adammck avatar aghull avatar arthurnn avatar astashov avatar cldwalker avatar eregon avatar ericpromislow avatar foobarwidget avatar hipe avatar jeckersb avatar jordimassaguerpla avatar mattr- avatar nobu avatar os97673 avatar reedloden avatar science avatar sunaku avatar tessi avatar towski avatar windwiny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

debugger's Issues

Jruby

What about distributing debugger-X.Y.Z-java and friends using jruby-debug?
@Gissues:{"order":50,"status":"notstarted"}

Segfault in ruby 1.9.3p194

This started with seg-faults being thrown within the application - i tried to narrow it down by including 'debugger' and using as the first thing in my Gemfile, and it's segfaulting on the same line in debugger: debugger-1.3.0/lib/ruby-debug-base.rb:213: [BUG] Segmentation fault
Thoughts?

$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.2]

$ rails --version
Rails 3.2.11

My Gemfile starts with:

source 'http://rubygems.org'

gem 'debugger'
require 'debugger'
debugger

Full segfault trace:

/Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug-base.rb:213: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.2]

-- Control frame information -----------------------------------------------
c:0022 p:0273 s:0090 b:0090 l:000089 d:000089 METHOD /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug-base.rb:213
c:0021 p:0021 s:0084 b:0084 l:000083 d:000083 METHOD /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug.rb:167
c:0020 p:0045 s:0080 b:0080 l:000069 d:000079 EVAL   /Users/grahammelcher/src/wfx/topaz/Gemfile:5
c:0019 p:---- s:0078 b:0078 l:000077 d:000077 FINISH
c:0018 p:---- s:0076 b:0076 l:000075 d:000075 CFUNC  :instance_eval
c:0017 p:0042 s:0070 b:0070 l:000069 d:000069 METHOD /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/dsl.rb:32
c:0016 p:0025 s:0064 b:0064 l:000063 d:000063 METHOD /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/dsl.rb:7
c:0015 p:0102 s:0056 b:0056 l:000055 d:000055 METHOD /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/definition.rb:18
c:0014 p:0082 s:0050 b:0050 l:000049 d:000049 METHOD /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler.rb:144
c:0013 p:0031 s:0046 b:0046 l:000045 d:000045 METHOD /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler.rb:112
c:0012 p:0077 s:0041 b:0041 l:000040 d:000040 TOP    /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/setup.rb:7
c:0011 p:---- s:0037 b:0037 l:000036 d:000036 FINISH
c:0010 p:---- s:0035 b:0035 l:000034 d:000034 CFUNC  :require
c:0009 p:0089 s:0031 b:0031 l:000027 d:000030 BLOCK  /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60
c:0008 p:0158 s:0028 b:0028 l:000027 d:000027 METHOD /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35
c:0007 p:0120 s:0021 b:0021 l:000020 d:000020 TOP    /Users/grahammelcher/src/wfx/topaz/config/boot.rb:8
c:0006 p:---- s:0019 b:0019 l:000018 d:000018 FINISH
c:0005 p:---- s:0017 b:0017 l:000016 d:000016 CFUNC  :require
c:0004 p:0036 s:0013 b:0013 l:000012 d:000012 METHOD /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
c:0003 p:0049 s:0006 b:0006 l:0011e8 d:0015b8 EVAL   script/rails:5
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0011e8 d:0011e8 TOP   

-- Ruby level backtrace information ----------------------------------------
script/rails:5:in `<main>'
/Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/grahammelcher/src/wfx/topaz/config/boot.rb:8:in `<top (required)>'
/Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
/Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
/Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/setup.rb:7:in `<top (required)>'
/Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler.rb:112:in `setup'
/Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler.rb:144:in `definition'
/Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/definition.rb:18:in `build'
/Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/dsl.rb:7:in `evaluate'
/Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/dsl.rb:32:in `eval_gemfile'
/Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/dsl.rb:32:in `instance_eval'
/Users/grahammelcher/src/wfx/topaz/Gemfile:5:in `eval_gemfile'
/Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug.rb:167:in `debugger'
/Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug-base.rb:213:in `start'

-- C level backtrace information -------------------------------------------

   See Crash Report log file under ~/Library/Logs/CrashReporter or
   /Library/Logs/CrashReporter, for the more detail of.

-- Other runtime information -----------------------------------------------

* Loaded script: script/rails

* Loaded features:

    0 enumerator.so
    1 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/enc/encdb.bundle
    2 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/enc/trans/transdb.bundle
    3 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    4 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/rbconfig.rb
    5 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    6 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    7 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
    8 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb
    9 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/digest.bundle
   10 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/digest.rb
   11 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/openssl.bundle
   12 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/bn.rb
   13 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/cipher.rb
   14 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/stringio.bundle
   15 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/config.rb
   16 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/digest.rb
   17 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/buffering.rb
   18 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/fcntl.bundle
   19 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/ssl-internal.rb
   20 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl/x509-internal.rb
   21 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl.rb
   22 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
   23 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
   24 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
   25 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
   26 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
   27 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
   28 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/oj-2.0.2/lib/oj/version.rb
   29 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/oj-2.0.2/lib/oj/bag.rb
   30 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/oj-2.0.2/lib/oj/error.rb
   31 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/oj-2.0.2/lib/oj/mimic.rb
   32 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/oj-2.0.2/lib/oj/saj.rb
   33 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/date_core.bundle
   34 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/date/format.rb
   35 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/date.rb
   36 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/time.rb
   37 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/bigdecimal.bundle
   38 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/oj-2.0.2/ext/oj/oj.bundle
   39 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/oj-2.0.2/lib/oj.rb
   40 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/pathname.bundle
   41 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/pathname.rb
   42 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/etc.bundle
   43 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb
   44 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/syntax_error.rb
   45 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/psych.bundle
   46 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/node.rb
   47 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/stream.rb
   48 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/document.rb
   49 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/sequence.rb
   50 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/scalar.rb
   51 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/mapping.rb
   52 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/alias.rb
   53 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes.rb
   54 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/streaming.rb
   55 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/visitor.rb
   56 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/strscan.bundle
   57 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/scalar_scanner.rb
   58 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb
   59 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/emitter.rb
   60 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb
   61 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/json/ruby_events.rb
   62 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/json_tree.rb
   63 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/depth_first.rb
   64 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors.rb
   65 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/handler.rb
   66 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/tree_builder.rb
   67 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/parser.rb
   68 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/omap.rb
   69 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/set.rb
   70 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/coder.rb
   71 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/core_ext.rb
   72 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/deprecated.rb
   73 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/stream.rb
   74 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/json/yaml_events.rb
   75 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/json/tree_builder.rb
   76 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/json/stream.rb
   77 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/handlers/document_stream.rb
   78 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb
   79 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/psych_additions.rb
   80 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/psych_tree.rb
   81 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb
   82 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/syck_hack.rb
   83 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/rubygems_integration.rb
   84 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/shared_helpers.rb
   85 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb
   86 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/gem_path_manipulation.rb
   87 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/psyched_yaml.rb
   88 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/gem_helpers.rb
   89 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/match_platform.rb
   90 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/rubygems_ext.rb
   91 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/version.rb
   92 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler.rb
   93 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/settings.rb
   94 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/digest/sha1.bundle
   95 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/set.rb
   96 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/definition.rb
   97 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/dependency.rb
   98 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/dsl.rb
   99 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/common.rb
  100 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/generic.rb
  101 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/ftp.rb
  102 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/http.rb
  103 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/https.rb
  104 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/ldap.rb
  105 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/ldaps.rb
  106 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/mailto.rb
  107 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri.rb
  108 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/user_interaction.rb
  109 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/package/f_sync_dir.rb
  110 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_header.rb
  111 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/enc/iso_8859_1.bundle
  112 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/zlib.bundle
  113 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb
  114 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_output.rb
  115 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader/entry.rb
  116 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader.rb
  117 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_writer.rb
  118 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/package.rb
  119 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/format.rb
  120 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb
  121 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/ext/configure_builder.rb
  122 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/optparse.rb
  123 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/command.rb
  124 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/ext/ext_conf_builder.rb
  125 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/ext/rake_builder.rb
  126 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/ext.rb
  127 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/require_paths_builder.rb
  128 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb
  129 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb
  130 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/errors.rb
  131 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/text.rb
  132 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb
  133 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/gem_installer.rb
  134 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/source.rb
  135 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/prettyprint.rb
  136 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/pp.rb
  137 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/socket.bundle
  138 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/socket.rb
  139 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/thread.rb
  140 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby_debug.bundle
  141 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-linecache-1.1.2/lib/trace_nums.bundle
  142 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-linecache-1.1.2/lib/tracelines19.rb
  143 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-linecache-1.1.2/lib/linecache19.rb
  144 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug-base.rb
  145 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.2/readline.bundle
  146 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/interface.rb
  147 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/columnize-0.3.6/lib/columnize.rb
  148 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/helper.rb
  149 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/breakpoints.rb
  150 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/catchpoint.rb
  151 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/condition.rb
  152 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/continue.rb
  153 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/control.rb
  154 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/display.rb
  155 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/edit.rb
  156 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/enable.rb
  157 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/eval.rb
  158 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/finish.rb
  159 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/frame.rb
  160 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/help.rb
  161 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/info.rb
  162 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/e2mmap.rb
  163 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/init.rb
  164 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/workspace.rb
  165 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/inspector.rb
  166 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/context.rb
  167 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/extend-command.rb
  168 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/output-method.rb
  169 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/notifier.rb
  170 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/slex.rb
  171 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/ruby-token.rb
  172 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/ruby-lex.rb
  173 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/src_encoding.rb
  174 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/magic-file.rb
  175 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/input-method.rb
  176 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/locale.rb
  177 /Users/grahammelcher/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb.rb
  178 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/irb.rb
  179 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/jump.rb
  180 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/kill.rb
  181 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/list.rb
  182 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/method.rb
  183 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/quit.rb
  184 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/reload.rb
  185 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/save.rb
  186 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/set.rb
  187 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/show.rb
  188 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/skip.rb
  189 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/source.rb
  190 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/stepping.rb
  191 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/threads.rb
  192 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/tmate.rb
  193 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/trace.rb
  194 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/commands/variables.rb
  195 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/command.rb
  196 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug/processor.rb
  197 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/ruby-debug.rb
  198 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/debugger/version.rb
  199 /Users/grahammelcher/.rvm/gems/ruby-1.9.3-p194@topaz/gems/debugger-1.3.0/lib/debugger.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

please document dotfile behavior

in the old days we would have a ~/.rdebugrc that would typically contain:

set autoeval on
set autolist on

i'm gonna hunt thru source to see what's going on with this now
then something about it (or the absence of support for such dotfiles) should be documented in the readme

Best, hipe

can't bundle install in ruby 1.9.3 -p194

Im using ruby1.9.3 p194 and trying to install debugger in my bundle. Somehow i got this error :

Using debugger-ruby_core_source (1.1.3)
Installing debugger-linecache (1.1.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb:2:in `require': no such file to load -- debugger/ruby_core_source (LoadError)
from extconf.rb:2

Gem files will remain installed in /Users/xiaohuang/Desktop/Work/GOOD/nommers/vendor/bundle/ruby/1.8/gems/debugger-linecache-1.1.2 for inspection.
Results logged to /Users/xiaohuang/Desktop/Work/GOOD/nommers/vendor/bundle/ruby/1.8/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out
An error occured while installing debugger-linecache (1.1.2), and Bundler cannot continue.
Make sure that gem install debugger-linecache -v '1.1.2' succeeds before bundling.

i run gem install debugger-linecache -v '1.1.2' and it succeeds but the bundling just keep failing. any solutions? Thanks a lot!!

gem install 'debugger', irb, require 'debugger' => error

Hi!

Context

ruby -v
ruby 1.9.2p323 (2012-05-22 revision 35755) [x86_64-darwin11.4.0]

Problem

$ gem install debugger
   Building native extensions.  This could take a while...
   Successfully installed debugger-1.2.1

$ irb
>require 'debugger'
LoadError: no such file to load -- trace_nums
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/PH/.rvm/gems/ruby-1.9.2-head@rails321/gems/debugger-linecache-1.1.2/lib/tracelines19.rb:3:in `<top (required)>'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/PH/.rvm/gems/ruby-1.9.2-head@rails321/gems/debugger-linecache-1.1.2/lib/linecache19.rb:65:in `<top (required)>'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/PH/.rvm/gems/ruby-1.9.2-head@rails321/gems/debugger-1.2.1/lib/ruby-debug-base.rb:2:in `<top (required)>'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/PH/.rvm/gems/ruby-1.9.2-head@rails321/gems/debugger-1.2.1/lib/ruby-debug.rb:5:in `<top (required)>'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/PH/.rvm/gems/ruby-1.9.2-head@rails321/gems/debugger-1.2.1/lib/debugger.rb:4:in `<top (required)>'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from (irb):1
    from /Users/PH/.rvm/rubies/ruby-1.9.2-head/bin/irb:16:in `<main>'

Integration with Rubymine

Hi man,

First and foremost, thx for actually take the time to easen the process of installing a debug tool for the latest ruby version. It's a shame that the development of such a tool has to come from a third party that may or may not maintain it further. Let's see what happens with ruby 2.0...

Well, I kind of feel this issue isn't really your concern, but Rubymine (using v. 4.0 on Mac OS) doesn't acknowledge the debugger gem. Everytime I want to start the server in debug mode, it always tries to install the faulty version of ruby-debug19. I've followed the workarounds available in http://devnet.jetbrains.net/thread/431168 and I still can't get it to work, even though it worked for some, according the comments. Anyway, since I already tried your gem, and it works amazingly for rspec, console and console-triggered server, my question would be: how much work would that be to make your gem the (default or not) debugger acknowledged by Rubymine? Is it up to you or to Jetbrains?

Cheerio,
Tiago

Post-mortem debugger segfaults

With debugger from today’s master:

(1123) [20:47:59 quintus@roma] /tmp
% cat foo.rb 
require "debugger"
Debugger.start(post_mortem: true)

def boom
  raise "boom"
end

boom
(1124) [20:50:28 quintus@roma] /tmp
% ruby foo.rb
foo.rb:5
raise "boom"
(rdb:post-mortem) backtrace
--> /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/frame.rb:80: [BUG] Segmentation fault
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0023 p:---- s:0091 b:0091 l:000090 d:000090 CFUNC  :frame_file
c:0022 p:0029 s:0087 b:0087 l:000086 d:000086 METHOD /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/frame.rb:80
c:0021 p:0056 s:0073 b:0073 l:000064 d:000072 BLOCK  /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/frame.rb:167
c:0020 p:---- s:0070 b:0070 l:000069 d:000069 FINISH
c:0019 p:---- s:0068 b:0068 l:000067 d:000067 CFUNC  :each
c:0018 p:0031 s:0065 b:0065 l:000064 d:000064 METHOD /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/frame.rb:161
c:0017 p:0080 s:0062 b:0062 l:000061 d:000061 METHOD /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:275
c:0016 p:0018 s:0054 b:0054 l:000d00 d:000053 BLOCK  /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:261
c:0015 p:---- s:0051 b:0051 l:000050 d:000050 FINISH
c:0014 p:---- s:0049 b:0049 l:000048 d:000048 CFUNC  :each
c:0013 p:0057 s:0046 b:0046 l:000d00 d:000045 BLOCK  /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:260
c:0012 p:---- s:0044 b:0044 l:000043 d:000043 FINISH
c:0011 p:---- s:0042 b:0042 l:000041 d:000041 CFUNC  :catch
c:0010 p:0186 s:0038 b:0038 l:000d00 d:000d00 METHOD /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:253
c:0009 p:0017 s:0028 b:0028 l:000027 d:000027 METHOD /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:173
c:0008 p:0023 s:0022 b:0022 l:000016 d:000021 BLOCK  (eval):5
c:0007 p:0019 s:0020 b:0020 l:000019 d:000019 METHOD <internal:prelude>:10
c:0006 p:0013 s:0017 b:0017 l:000016 d:000016 METHOD (eval):3
c:0005 p:0263 s:0013 b:0013 l:000012 d:000012 METHOD /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug-base.rb:155
c:0004 p:0024 s:0008 b:0008 l:0016f8 d:000007 BLOCK  /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug-base.rb:143
c:0003 p:---- s:0006 b:0006 l:000005 d:000005 FINISH
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 CFUNC  :call
c:0001 p:0000 s:0002 b:0002 l:000ba8 d:000ba8 TOP   

-- Ruby level backtrace information ----------------------------------------
foo.rb:0:in `call'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug-base.rb:143:in `block in post_mortem'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug-base.rb:155:in `handle_post_mortem'
(eval):3:in `at_line'
<internal:prelude>:10:in `synchronize'
(eval):5:in `block in at_line'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:173:in `at_line'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:253:in `process_commands'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:253:in `catch'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:260:in `block in process_commands'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:260:in `each'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:261:in `block (2 levels) in process_commands'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb:275:in `one_cmd'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/frame.rb:161:in `execute'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/frame.rb:161:in `each'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/frame.rb:167:in `block in execute'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/frame.rb:80:in `print_frame'
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/frame.rb:80:in `frame_file'

-- C level backtrace information -------------------------------------------
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x18f063) [0x7ffc2ea94063] vm_dump.c:796
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x625bd) [0x7ffc2e9675bd] error.c:258
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(rb_bug+0xb3) [0x7ffc2e9683b3] error.c:277
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x11d34f) [0x7ffc2ea2234f] signal.c:609
/usr/lib/libpthread.so.0(+0xf1a0) [0x7ffc2e6f81a0]
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby_debug.so(+0x5584) [0x7ffc2ccd7584] ruby_debug.c:1823
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x18884c) [0x7ffc2ea8d84c] vm_insnhelper.c:404
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x1808ab) [0x7ffc2ea858ab] insns.def:1018
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x184fbc) [0x7ffc2ea89fbc] vm.c:1223
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(rb_yield+0x17a) [0x7ffc2ea8eeca] vm.c:627
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0xe610e) [0x7ffc2e9eb10e] range.c:491
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x18884c) [0x7ffc2ea8d84c] vm_insnhelper.c:404
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x1808ab) [0x7ffc2ea858ab] insns.def:1018
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x184fbc) [0x7ffc2ea89fbc] vm.c:1223
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(rb_yield+0x17a) [0x7ffc2ea8eeca] vm.c:627
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(rb_ary_each+0x52) [0x7ffc2e931112] array.c:1478
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x18884c) [0x7ffc2ea8d84c] vm_insnhelper.c:404
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x1808ab) [0x7ffc2ea858ab] insns.def:1018
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x184fbc) [0x7ffc2ea89fbc] vm.c:1223
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x189a62) [0x7ffc2ea8ea62] vm.c:627
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(rb_catch_obj+0xba) [0x7ffc2ea8308a] vm_eval.c:1554
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x17e12e) [0x7ffc2ea8312e] vm_eval.c:1530
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x18884c) [0x7ffc2ea8d84c] vm_insnhelper.c:404
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x1808ab) [0x7ffc2ea858ab] insns.def:1018
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x184fbc) [0x7ffc2ea89fbc] vm.c:1223
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x185d81) [0x7ffc2ea8ad81] vm.c:673
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x1861db) [0x7ffc2ea8b1db] vm_eval.c:79
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(rb_funcall+0xf7) [0x7ffc2ea8c817] vm_eval.c:236
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(rb_ensure+0xb6) [0x7ffc2e96eb66] eval.c:744
/opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby_debug.so(+0x69ce) [0x7ffc2ccd89ce] ruby_debug.c:1572
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(rb_exec_end_proc+0x19f) [0x7ffc2e96fd0f] eval_jump.c:126
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(+0x6adba) [0x7ffc2e96fdba] eval.c:92
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(ruby_cleanup+0x131) [0x7ffc2e96ff31] eval.c:133
/opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9(ruby_run_node+0x23) [0x7ffc2e970273] eval.c:244
ruby() [0x40088b]
/usr/lib/libc.so.6(__libc_start_main+0xf5) [0x7ffc2da26725]
ruby() [0x4008b9]

-- Other runtime information -----------------------------------------------

* Loaded script: foo.rb

* Loaded features:

    0 enumerator.so
    1 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
    2 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
    3 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    4 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb
    5 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    6 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    7 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
    8 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems.rb
    9 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
   10 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
   11 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
   12 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
   13 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
   14 /opt/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
   15 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/prettyprint.rb
   16 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/pp.rb
   17 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/stringio.so
   18 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/socket.so
   19 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/socket.rb
   20 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/thread.rb
   21 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby_debug.so
   22 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/digest.so
   23 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/digest.rb
   24 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
   25 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/set.rb
   26 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.2/lib/trace_nums.so
   27 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.2/lib/tracelines19.rb
   28 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.2/lib/linecache19.rb
   29 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug-base.rb
   30 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/readline.so
   31 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/interface.rb
   32 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/columnize-0.3.6/lib/columnize.rb
   33 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/helper.rb
   34 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/eval.rb
   35 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/e2mmap.rb
   36 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/init.rb
   37 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/workspace.rb
   38 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/inspector.rb
   39 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/context.rb
   40 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/extend-command.rb
   41 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/output-method.rb
   42 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/notifier.rb
   43 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/slex.rb
   44 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/ruby-token.rb
   45 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/ruby-lex.rb
   46 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/src_encoding.rb
   47 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/magic-file.rb
   48 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/input-method.rb
   49 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb/locale.rb
   50 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/irb.rb
   51 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/irb.rb
   52 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/stepping.rb
   53 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/condition.rb
   54 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/continue.rb
   55 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/catchpoint.rb
   56 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/reload.rb
   57 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/variables.rb
   58 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/threads.rb
   59 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/method.rb
   60 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/show.rb
   61 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/save.rb
   62 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/set.rb
   63 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/kill.rb
   64 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/quit.rb
   65 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/edit.rb
   66 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/skip.rb
   67 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/finish.rb
   68 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/enable.rb
   69 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/help.rb
   70 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/frame.rb
   71 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/control.rb
   72 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/source.rb
   73 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/info.rb
   74 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/display.rb
   75 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/trace.rb
   76 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/jump.rb
   77 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/list.rb
   78 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/tmate.rb
   79 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/commands/breakpoints.rb
   80 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/command.rb
   81 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/pathname.so
   82 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/pathname.rb
   83 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug/processor.rb
   84 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby-debug.rb
   85 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/debugger/version.rb
   86 /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/debugger.rb
   87 /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so

* Process memory map:

00400000-00401000 r-xp 00000000 fe:00 3697789                            /opt/rubies/ruby-1.9.3-p286/bin/ruby
00600000-00601000 rw-p 00000000 fe:00 3697789                            /opt/rubies/ruby-1.9.3-p286/bin/ruby
02453000-02ec5000 rw-p 00000000 00:00 0                                  [heap]
7ffc2b161000-7ffc2b176000 r-xp 00000000 fe:00 550667                     /usr/lib/libgcc_s.so.1
7ffc2b176000-7ffc2b375000 ---p 00015000 fe:00 550667                     /usr/lib/libgcc_s.so.1
7ffc2b375000-7ffc2b376000 rw-p 00014000 fe:00 550667                     /usr/lib/libgcc_s.so.1
7ffc2b376000-7ffc2b38c000 r-xp 00000000 fe:00 3697837                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so
7ffc2b38c000-7ffc2b58b000 ---p 00016000 fe:00 3697837                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so
7ffc2b58b000-7ffc2b590000 rw-p 00015000 fe:00 3697837                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so
7ffc2b590000-7ffc2b597000 r-xp 00000000 fe:00 3697885                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/pathname.so
7ffc2b597000-7ffc2b797000 ---p 00007000 fe:00 3697885                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/pathname.so
7ffc2b797000-7ffc2b798000 rw-p 00007000 fe:00 3697885                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/pathname.so
7ffc2b798000-7ffc2b7f0000 r-xp 00000000 fe:00 527787                     /usr/lib/libncursesw.so.5.9
7ffc2b7f0000-7ffc2b9ef000 ---p 00058000 fe:00 527787                     /usr/lib/libncursesw.so.5.9
7ffc2b9ef000-7ffc2b9f3000 r--p 00057000 fe:00 527787                     /usr/lib/libncursesw.so.5.9
7ffc2b9f3000-7ffc2b9f4000 rw-p 0005b000 fe:00 527787                     /usr/lib/libncursesw.so.5.9
7ffc2b9f4000-7ffc2b9f5000 rw-p 00000000 00:00 0 
7ffc2b9f5000-7ffc2ba31000 r-xp 00000000 fe:00 530335                     /usr/lib/libreadline.so.6.2
7ffc2ba31000-7ffc2bc31000 ---p 0003c000 fe:00 530335                     /usr/lib/libreadline.so.6.2
7ffc2bc31000-7ffc2bc33000 r--p 0003c000 fe:00 530335                     /usr/lib/libreadline.so.6.2
7ffc2bc33000-7ffc2bc39000 rw-p 0003e000 fe:00 530335                     /usr/lib/libreadline.so.6.2
7ffc2bc39000-7ffc2bc3b000 rw-p 00000000 00:00 0 
7ffc2bc3b000-7ffc2bc41000 r-xp 00000000 fe:00 3697879                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/readline.so
7ffc2bc41000-7ffc2be40000 ---p 00006000 fe:00 3697879                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/readline.so
7ffc2be40000-7ffc2be41000 rw-p 00005000 fe:00 3697879                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/readline.so
7ffc2be41000-7ffc2be43000 r-xp 00000000 fe:00 4719043                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.2/lib/trace_nums.so
7ffc2be43000-7ffc2c043000 ---p 00002000 fe:00 4719043                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.2/lib/trace_nums.so
7ffc2c043000-7ffc2c044000 rw-p 00002000 fe:00 4719043                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.2/lib/trace_nums.so
7ffc2c044000-7ffc2c047000 r-xp 00000000 fe:00 3697807                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/digest.so
7ffc2c047000-7ffc2c247000 ---p 00003000 fe:00 3697807                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/digest.so
7ffc2c247000-7ffc2c248000 rw-p 00003000 fe:00 3697807                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/digest.so
7ffc2c248000-7ffc2c25d000 r-xp 00000000 fe:00 530487                     /usr/lib/libz.so.1.2.7
7ffc2c25d000-7ffc2c45c000 ---p 00015000 fe:00 530487                     /usr/lib/libz.so.1.2.7
7ffc2c45c000-7ffc2c45d000 r--p 00014000 fe:00 530487                     /usr/lib/libz.so.1.2.7
7ffc2c45d000-7ffc2c45e000 rw-p 00015000 fe:00 530487                     /usr/lib/libz.so.1.2.7
7ffc2c45e000-7ffc2c4be000 r-xp 00000000 fe:00 546593                     /usr/lib/libssl.so.1.0.0
7ffc2c4be000-7ffc2c6bd000 ---p 00060000 fe:00 546593                     /usr/lib/libssl.so.1.0.0
7ffc2c6bd000-7ffc2c6c1000 r--p 0005f000 fe:00 546593                     /usr/lib/libssl.so.1.0.0
7ffc2c6c1000-7ffc2c6c7000 rw-p 00063000 fe:00 546593                     /usr/lib/libssl.so.1.0.0
7ffc2c6c7000-7ffc2c6c8000 rw-p 00000000 00:00 0 
7ffc2c6c8000-7ffc2c8a8000 r-xp 00000000 fe:00 546594                     /usr/lib/libcrypto.so.1.0.0
7ffc2c8a8000-7ffc2caa7000 ---p 001e0000 fe:00 546594                     /usr/lib/libcrypto.so.1.0.0
7ffc2caa7000-7ffc2cac2000 r--p 001df000 fe:00 546594                     /usr/lib/libcrypto.so.1.0.0
7ffc2cac2000-7ffc2cacd000 rw-p 001fa000 fe:00 546594                     /usr/lib/libcrypto.so.1.0.0
7ffc2cacd000-7ffc2cad1000 rw-p 00000000 00:00 0 
7ffc2cad1000-7ffc2cad2000 r-xp 00000000 fe:00 3697890                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
7ffc2cad2000-7ffc2ccd1000 ---p 00001000 fe:00 3697890                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
7ffc2ccd1000-7ffc2ccd2000 rw-p 00000000 fe:00 3697890                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
7ffc2ccd2000-7ffc2ccdd000 r-xp 00000000 fe:00 4719343                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby_debug.so
7ffc2ccdd000-7ffc2cedc000 ---p 0000b000 fe:00 4719343                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby_debug.so
7ffc2cedc000-7ffc2cedd000 rw-p 0000a000 fe:00 4719343                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/debugger-1.2.3/lib/ruby_debug.so
7ffc2cedd000-7ffc2cf00000 r-xp 00000000 fe:00 3697818                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/socket.so
7ffc2cf00000-7ffc2d100000 ---p 00023000 fe:00 3697818                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/socket.so
7ffc2d100000-7ffc2d101000 rw-p 00023000 fe:00 3697818                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/socket.so
7ffc2d101000-7ffc2d108000 r-xp 00000000 fe:00 3697820                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/stringio.so
7ffc2d108000-7ffc2d307000 ---p 00007000 fe:00 3697820                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/stringio.so
7ffc2d307000-7ffc2d308000 rw-p 00006000 fe:00 3697820                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/stringio.so
7ffc2d308000-7ffc2d30a000 r-xp 00000000 fe:00 3697827                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7ffc2d30a000-7ffc2d50a000 ---p 00002000 fe:00 3697827                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7ffc2d50a000-7ffc2d50b000 rw-p 00002000 fe:00 3697827                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7ffc2d50b000-7ffc2d50d000 r-xp 00000000 fe:00 3697859                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7ffc2d50d000-7ffc2d70c000 ---p 00002000 fe:00 3697859                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7ffc2d70c000-7ffc2d70d000 rw-p 00001000 fe:00 3697859                    /opt/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7ffc2d70d000-7ffc2da05000 r--p 00000000 fe:00 559934                     /usr/lib/locale/locale-archive
7ffc2da05000-7ffc2dba2000 r-xp 00000000 fe:00 559635                     /usr/lib/libc-2.16.so
7ffc2dba2000-7ffc2dda2000 ---p 0019d000 fe:00 559635                     /usr/lib/libc-2.16.so
7ffc2dda2000-7ffc2dda6000 r--p 0019d000 fe:00 559635                     /usr/lib/libc-2.16.so
7ffc2dda6000-7ffc2dda8000 rw-p 001a1000 fe:00 559635                     /usr/lib/libc-2.16.so
7ffc2dda8000-7ffc2ddac000 rw-p 00000000 00:00 0 
7ffc2ddac000-7ffc2dea5000 r-xp 00000000 fe:00 559621                     /usr/lib/libm-2.16.so
7ffc2dea5000-7ffc2e0a4000 ---p 000f9000 fe:00 559621                     /usr/lib/libm-2.16.so
7ffc2e0a4000-7ffc2e0a5000 r--p 000f8000 fe:00 559621                     /usr/lib/libm-2.16.so
7ffc2e0a5000-7ffc2e0a6000 rw-p 000f9000 fe:00 559621                     /usr/lib/libm-2.16.so
7ffc2e0a6000-7ffc2e0ae000 r-xp 00000000 fe:00 559611                     /usr/lib/libcrypt-2.16.so
7ffc2e0ae000-7ffc2e2ad000 ---p 00008000 fe:00 559611                     /usr/lib/libcrypt-2.16.so
7ffc2e2ad000-7ffc2e2ae000 r--p 00007000 fe:00 559611                     /usr/lib/libcrypt-2.16.so
7ffc2e2ae000-7ffc2e2af000 rw-p 00008000 fe:00 559611                     /usr/lib/libcrypt-2.16.so
7ffc2e2af000-7ffc2e2dd000 rw-p 00000000 00:00 0 
7ffc2e2dd000-7ffc2e2e0000 r-xp 00000000 fe:00 559647                     /usr/lib/libdl-2.16.so
7ffc2e2e0000-7ffc2e4df000 ---p 00003000 fe:00 559647                     /usr/lib/libdl-2.16.so
7ffc2e4df000-7ffc2e4e0000 r--p 00002000 fe:00 559647                     /usr/lib/libdl-2.16.so
7ffc2e4e0000-7ffc2e4e1000 rw-p 00003000 fe:00 559647                     /usr/lib/libdl-2.16.so
7ffc2e4e1000-7ffc2e4e8000 r-xp 00000000 fe:00 559631                     /usr/lib/librt-2.16.so
7ffc2e4e8000-7ffc2e6e7000 ---p 00007000 fe:00 559631                     /usr/lib/librt-2.16.so
7ffc2e6e7000-7ffc2e6e8000 r--p 00006000 fe:00 559631                     /usr/lib/librt-2.16.so
7ffc2e6e8000-7ffc2e6e9000 rw-p 00007000 fe:00 559631                     /usr/lib/librt-2.16.so
7ffc2e6e9000-7ffc2e700000 r-xp 00000000 fe:00 559641                     /usr/lib/libpthread-2.16.so
7ffc2e700000-7ffc2e8ff000 ---p 00017000 fe:00 559641                     /usr/lib/libpthread-2.16.so
7ffc2e8ff000-7ffc2e900000 r--p 00016000 fe:00 559641                     /usr/lib/libpthread-2.16.so
7ffc2e900000-7ffc2e901000 rw-p 00017000 fe:00 559641                     /usr/lib/libpthread-2.16.so
7ffc2e901000-7ffc2e905000 rw-p 00000000 00:00 0 
7ffc2e905000-7ffc2eb32000 r-xp 00000000 fe:00 3697791                    /opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9.1
7ffc2eb32000-7ffc2ed32000 ---p 0022d000 fe:00 3697791                    /opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9.1
7ffc2ed32000-7ffc2ed3a000 rw-p 0022d000 fe:00 3697791                    /opt/rubies/ruby-1.9.3-p286/lib/libruby.so.1.9.1
7ffc2ed3a000-7ffc2ed56000 rw-p 00000000 00:00 0 
7ffc2ed56000-7ffc2ed77000 r-xp 00000000 fe:00 559669                     /usr/lib/ld-2.16.so
7ffc2ee43000-7ffc2ef49000 rw-p 00000000 00:00 0 
7ffc2ef70000-7ffc2ef72000 rw-p 00000000 00:00 0 
7ffc2ef72000-7ffc2ef73000 ---p 00000000 00:00 0 
7ffc2ef73000-7ffc2ef77000 rw-p 00000000 00:00 0                          [stack:20912]
7ffc2ef77000-7ffc2ef78000 r--p 00021000 fe:00 559669                     /usr/lib/ld-2.16.so
7ffc2ef78000-7ffc2ef79000 rw-p 00022000 fe:00 559669                     /usr/lib/ld-2.16.so
7ffc2ef79000-7ffc2ef7a000 rw-p 00000000 00:00 0 
7fff4ef18000-7fff4ef39000 rw-p 00000000 00:00 0 
7fff4efbf000-7fff4efc0000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]


[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

zsh: abort (core dumped)  ruby foo.rb
(1125) [20:50:37 quintus@roma] /tmp
% 

Ruby version: ` ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]
OS: Arch Linux 64-bits

Vale,
Quintus

Does not work with Ruby 1.9.3p286

gem i debugger
Building native extensions.  This could take a while...
ERROR:  Error installing debugger:
    ERROR: Failed to build gem native extension.

        /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p286 provided with debugger-ruby_core_source gem.
**************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/home/wojtek/.rvm/rubies/ruby-1.9.3-p286/bin/ruby
    --with-ruby-dir
    --without-ruby-dir
    --with-ruby-include
    --without-ruby-include=${ruby-dir}/include
    --with-ruby-lib
    --without-ruby-lib=${ruby-dir}/lib

More useful default config

To do any useful debugging, I usually add this to ~/.rdebugrc:

set autolist
set autoeval
set autoreload

We should make these defaults.

[Ruby 1.9.3-p327] LoadError on trace_nums

Getting 'cannot load such file -- trace_nums' after upgrading to p327. Reinstalled the gem and everything :) It builds fine, but simply doesn't run.

Here is the stack trace:

~/.rvm/gems/ruby-1.9.3-p327/gems/debugger-linecache-1.1.2/lib/tracelines19.rb:3:in require': cannot load such file -- trace_nums (LoadError) from ~/.rvm/gems/ruby-1.9.3-p327/gems/debugger-linecache-1.1.2/lib/tracelines19.rb:3:in<top (required)>'
from ~/.rvm/gems/ruby-1.9.3-p327/gems/debugger-linecache-1.1.2/lib/linecache19.rb:65:in require' from ~/.rvm/gems/ruby-1.9.3-p327/gems/debugger-linecache-1.1.2/lib/linecache19.rb:65:in<top (required)>'
from ~/.rvm/gems/ruby-1.9.3-p327/gems/debugger-1.2.1/lib/ruby-debug-base.rb:2:in require' from ~/.rvm/gems/ruby-1.9.3-p327/gems/debugger-1.2.1/lib/ruby-debug-base.rb:2:in<top (required)>'
from ~/.rvm/gems/ruby-1.9.3-p327/gems/debugger-1.2.1/lib/ruby-debug.rb:5:in require' from ~/.rvm/gems/ruby-1.9.3-p327/gems/debugger-1.2.1/lib/ruby-debug.rb:5:in<top (required)>'
from ~/.rvm/gems/ruby-1.9.3-p327/gems/debugger-1.2.1/lib/debugger.rb:4:in require' from ~/.rvm/gems/ruby-1.9.3-p327/gems/debugger-1.2.1/lib/debugger.rb:4:in<top (required)>'
from ~/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in require' from ~/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:inblock (2 levels) in require'
from ~/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in each' from ~/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:inblock in require'
from ~/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in each' from ~/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:inrequire'
from ~/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler.rb:128:in require' from ~/Projects/devcms/deventer/config/application.rb:7:in<top (required)>'
from ~/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.8/lib/rails/commands.rb:39:in require' from ~/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.8/lib/rails/commands.rb:39:in<top (required)>'
from script/rails:6:in require' from script/rails:6:in

'

Integrate debugger to ide?

It's possible to integrate debugger with ruby-debug-ide that requires by any ide (I use vim with vim-ruby-debug). Any of my attempts was failed.

deadlock when map-ing multiple threads

As encountered in sferik/twitter-ruby#332, the following causes debugger to raise an internal error:

threads = []
[1,2,3].each {|obj| threads << Thread.new { yield obj } }
threads.map(&:value)

I don't have time to look into this. Pull requests welcome to fix this.
@Gissues:{"order":75,"status":"notstarted"}

set linetrace on not working?

I'm trying out the tutorial example and got nothing:
/home/netflow/dev/triangle.rb:6
0.upto(n) do |i|
(rdb:1) p tri
0
(rdb:1) display tri
1: tri = 0
(rdb:1) display i
2: i =
(rdb:1) set linetrace on
line tracing is on.
(rdb:1) finish
6

I'm expecting

(rdb:1) display i
2: i =
(rdb:1) set linetrace on
line tracing is on.
(rdb:1) finish
Tracing(1):triangle.rb:7 tri += i
1: tri = 0
2: i = 0
Tracing(1):triangle.rb:7 tri += i
1: tri = 0
2: i = 1
Tracing(1):triangle.rb:7 tri += i
1: tri = 1
2: i = 2
Tracing(1):triangle.rb:7 tri += i
1: tri = 3
2: i = 3
Tracing(1):triangle.rb:9 return tri
1: tri = 6
2: i =

command line switch to enable debugger

Is there an option to enable the debugger as a command line switch. eg.

$ bundle exec rails server --debugger

or

$ DEBUG=true bundle exec rails server

Installing doesn't work

I wanted to upgrade from version 1.0.0 to 1.1.0, but it couldn't build native extensions. When I installed version 1.0.0, I didn't have to provide the --with-ruby-include option. Now, obviously, I did, so I ran

$ gem install debugger -- --with-ruby-include=/Users/jstojanovski/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby-1.9.3-p0

But it doesn't work. It's having problems installing linecache. I already uninstalled my previous versions of the 3 gems (debugger version 1.0.0 and it's dependencies), so I tried installing them again (because those version worked ok). But it says it can't build the linecache gem. I don't get this, it succeeded on installing it before, why can't it install now?

cannot load such file -- debugger

gem install debugger

Added in Gemfile

gem "debugger", "~> 1.2.0"

bundle install - no error

Now I put debugger in one of my controllers

def show
    require 'debugger'; debugger
    @user = User.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.json { render json: @user }
   end
  end

When I point my browser, I get

LoadError in UsersController#show

cannot load such file -- debugger

I am using ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] and Rails 3.2.6 with Phusion passenger

Can you help me to troubleshoot this issue?

No source for ruby-1.9.3-p327 provided with debugger-ruby_core_source gem.

I have 'debugger' included in 'development' group in my Gemfile for some gem source, because, well, I use it all the time in development, and without being in the gemfile in a bundler world, it's not really reliably avail to use.

My gem is CI'd at travis. There's really no reason travis needs to build 'debugger', but it ends up doing so by default anyway (something I only discovered just now when it broke), which didn't cause any problems before.

Except Travis just stopped being able to compile it. With:

 No source for ruby-1.9.3-p327 provided with debugger-ruby_core_source gem.

Huh?

Any suggestions? Can debugger-ruby_core_source be made to support 1.9.3-p327, which travis uses? or, even though it's nto really debugger's problem, if anyone has a suggestion for how I can keep debugger in my gemfile for MY own use, but tell travis's bundler execution not to actually try to install it, that would be another workaround.

Crash in debugger on 'where' for ruby 1.9.3-p125

Continuing with the hack shown in #9

The debugger is a bit of a hybrid right now, with bits from 1.8 (columnize.rb), 1.9.2
(linecache19.rb), and whatever is in the debugger/dir

I run this command with ruby-1.9.3-p125 ($d3 is wherre the Komodo ruby debugger bits live):

$ ruby -Ilib -Iext/ruby_debug -I$d3/prebuilt/ruby/all/1.9 -I$d3/prebuilt/ruby/linux-x86/1.9.3 -I$d3/prebuilt/ruby/all/1.8 bin/rdebug test/next.rb

/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/test/next.rb:1
def foo
(rdb:1) n
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/test/next.rb:7
a = 1
(rdb:1)
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/test/next.rb:8
if a == 1
(rdb:1)
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/test/next.rb:9
a += 2
(rdb:1)
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/test/next.rb:10
puts a
(rdb:1)
3
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/test/next.rb:12
foo
(rdb:1) s
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/test/next.rb:2
a = 1
(rdb:1) where

And ruby dies here. Ping me if you want the full dump:

--> #0 Object.foo
at line /home/ericp/lab/rb/ruby-debug--cldwalker/debugger/test/next.rb:2
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/lib/ruby-debug/commands/frame.rb:47: [BUG] Segmentation fault
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]

-- Control frame information -----------------------------------------------
c:0029 p:---- s:0135 b:0135 l:000134 d:000134 CFUNC :id2name
c:0028 p:0165 s:0132 b:0131 l:000130 d:000130 METHOD /home/ericp/lab/rb/ruby-debug--cldwalker/debugger/lib/ruby-debug/commands/frame.rb:47
c:0027 p:0180 s:0119 b:0119 l:000118 d:000118 METHOD /home/
...

The code dies with "call_str << id.id2name" at frame.4b:47 This doesn't even hit the ruby_debug.c code,
only core code.

The Ruby stacktrace:

-- Ruby level backtrace information ----------------------------------------
bin/rdebug:394:in <main>' bin/rdebug:124:indebug_program'
bin/rdebug:124:in debug_load' /home/ericp/lab/rb/ruby-debug--cldwalker/debugger/test/next.rb:12:in<top (required)>'
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/test/next.rb:2:in foo' /home/ericp/lab/rb/ruby-debug--cldwalker/debugger/lib/ruby-debug-base.rb:54:inat_line'
(eval):3:in at_line' <internal:prelude>:10:insynchronize'
(eval):5:in block in at_line' ... /home/ericp/lab/rb/ruby-debug--cldwalker/debugger/lib/ruby-debug/commands/frame.rb:93:inprint_frame'
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/lib/ruby-debug/commands/frame.rb:47:in get_frame_call' /home/ericp/lab/rb/ruby-debug--cldwalker/debugger/lib/ruby-debug/commands/frame.rb:47:inid2name'

-- C level backtrace information -------------------------------------------
ruby [0x81702ba]
ruby [0x81b661e]
ruby(rb_bug+0x32) [0x81b66c2]
ruby [0x80fc20e]
[0x9db40c]
ruby [0x8165528]
ruby [0x8166c24]
ruby [0x816c73c]
ruby(rb_yield+0x4f) [0x816dfbf]
ruby [0x80c8ac9]
ruby [0x8165528]
ruby [0x8166c24]
ruby [0x816c73c]
ruby(rb_yield+0x4f) [0x816dfbf]
ruby(rb_ary_each+0x4d) [0x8182b7d]
ruby [0x8165528]
ruby [0x8166c24]
ruby [0x816c73c]
ruby [0x816dd43]
ruby(rb_catch_obj+0xef) [0x8159def]
ruby [0x815ab76]
ruby [0x815a2ad]
ruby [0x8165528]
ruby [0x8166c24]
ruby [0x816c73c]
ruby [0x815f0b2]
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/ext/ruby_debug/ruby_debug.so [0x2a900a]
ruby(rb_protect+0xb9) [0x8059269]
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/ext/ruby_debug/ruby_debug.so [0x2ac0cf]
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/ext/ruby_debug/ruby_debug.so [0x2acaa4]
ruby [0x817151d]
ruby [0x817261e]
ruby [0x81726d6]
ruby [0x816c022]
ruby [0x816c73c]
ruby(rb_iseq_eval+0x13a) [0x816cbfa]
ruby [0x81ba7ef]
ruby(rb_load_protect+0x90) [0x81bc060]
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/ext/ruby_debug/ruby_debug.so [0x2ab2a9]
ruby [0x815a2ad]
ruby [0x8165528]
ruby [0x8166c24]
ruby [0x816c73c]
ruby(rb_iseq_eval_main+0x1da) [0x816ca9a]
ruby [0x8059672]
ruby(ruby_run_node+0x32) [0x805b492]-- C level backtrace information -------------------------------------------
ruby [0x81702ba]
ruby [0x81b661e]
ruby(rb_bug+0x32) [0x81b66c2]
ruby [0x80fc20e]
[0x9db40c]
ruby [0x8165528]
ruby [0x8166c24]
ruby [0x816c73c]
ruby(rb_yield+0x4f) [0x816dfbf]
ruby [0x80c8ac9]
ruby [0x8165528]
ruby [0x8166c24]
ruby [0x816c73c]
ruby(rb_yield+0x4f) [0x816dfbf]
ruby(rb_ary_each+0x4d) [0x8182b7d]
ruby [0x8165528]
ruby [0x8166c24]
ruby [0x816c73c]
ruby [0x816dd43]
ruby(rb_catch_obj+0xef) [0x8159def]
ruby [0x815ab76]
ruby [0x815a2ad]
ruby [0x8165528]
ruby [0x8166c24]
ruby [0x816c73c]
ruby [0x815f0b2]
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/ext/ruby_debug/ruby_debug.so [0x2a900a]
ruby(rb_protect+0xb9) [0x8059269]
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/ext/ruby_debug/ruby_debug.so [0x2ac0cf]
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/ext/ruby_debug/ruby_debug.so [0x2acaa4]
ruby [0x817151d]
ruby [0x817261e]
ruby [0x81726d6]
ruby [0x816c022]
ruby [0x816c73c]
ruby(rb_iseq_eval+0x13a) [0x816cbfa]
ruby [0x81ba7ef]
ruby(rb_load_protect+0x90) [0x81bc060]
/home/ericp/lab/rb/ruby-debug--cldwalker/debugger/ext/ruby_debug/ruby_debug.so [0x2ab2a9]
ruby [0x815a2ad]
ruby [0x8165528]
ruby [0x8166c24]
ruby [0x816c73c]
ruby(rb_iseq_eval_main+0x1da) [0x816ca9a]
ruby [0x8059672]
ruby(ruby_run_node+0x32) [0x805b492]
ruby [0x8058900]
/lib/libc.so.6(__libc_start_main+0xe5) [0x1266e5]
ruby [0x8058801]

ruby [0x8058900]
/lib/libc.so.6(__libc_start_main+0xe5) [0x1266e5]
ruby [0x8058801]

Write back if you want the full shot

`where` breaks the debugger

Calling where in a script causes the debugger to crash:

[yorickpeterse@yorickpeterse in ~]$ cd ~/Projects/ruby/playground/
Using /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125 with gemset playground
[yorickpeterse@yorickpeterse in playground]$ cat debugger.rb 
require 'debugger'

class Person
  attr_accessor :name

  def initialize(name)
    @name = name
  end
end

person = Person.new('Yorick')

debugger

puts person.name
[yorickpeterse@yorickpeterse in playground]$ ruby debugger.rb 
debugger.rb:15
puts person.name
(rdb:1) where
--> /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:47: [BUG] Segmentation fault
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0024 p:---- s:0104 b:0104 l:000103 d:000103 CFUNC  :id2name
c:0023 p:0165 s:0101 b:0100 l:000099 d:000099 METHOD /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:47
c:0022 p:0180 s:0088 b:0088 l:000087 d:000087 METHOD /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:93
c:0021 p:0056 s:0074 b:0074 l:000065 d:000073 BLOCK  /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:167
c:0020 p:---- s:0071 b:0071 l:000070 d:000070 FINISH
c:0019 p:---- s:0069 b:0069 l:000068 d:000068 CFUNC  :each
c:0018 p:0031 s:0066 b:0066 l:000065 d:000065 METHOD /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:161
c:0017 p:0080 s:0063 b:0063 l:000062 d:000062 METHOD /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:275
c:0016 p:0018 s:0055 b:0055 l:000830 d:000054 BLOCK  /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:261
c:0015 p:---- s:0052 b:0052 l:000051 d:000051 FINISH
c:0014 p:---- s:0050 b:0050 l:000049 d:000049 CFUNC  :each
c:0013 p:0057 s:0047 b:0047 l:000830 d:000046 BLOCK  /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:260
c:0012 p:---- s:0045 b:0045 l:000044 d:000044 FINISH
c:0011 p:---- s:0043 b:0043 l:000042 d:000042 CFUNC  :catch
c:0010 p:0186 s:0039 b:0039 l:000830 d:000830 METHOD /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:253
c:0009 p:0017 s:0029 b:0029 l:000028 d:000028 METHOD /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:173
c:0008 p:0023 s:0023 b:0023 l:000017 d:000022 BLOCK  (eval):5
c:0007 p:0019 s:0021 b:0021 l:000020 d:000020 METHOD <internal:prelude>:10
c:0006 p:0013 s:0018 b:0018 l:000017 d:000017 METHOD (eval):3
c:0005 p:0022 s:0014 b:0014 l:000013 d:000013 METHOD /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/lib/ruby-debug-base.rb:55
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 FINISH
c:0003 p:0054 s:0007 b:0007 l:0018d8 d:000280 EVAL   debugger.rb:15
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0018d8 d:0018d8 TOP   

-- Ruby level backtrace information ----------------------------------------
debugger.rb:15:in `<main>'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/lib/ruby-debug-base.rb:55:in `at_line'
(eval):3:in `at_line'
<internal:prelude>:10:in `synchronize'
(eval):5:in `block in at_line'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:173:in `at_line'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:253:in `process_commands'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:253:in `catch'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:260:in `block in process_commands'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:260:in `each'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:261:in `block (2 levels) in process_commands'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb:275:in `one_cmd'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:161:in `execute'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:161:in `each'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:167:in `block in execute'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:93:in `print_frame'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:47:in `get_frame_call'
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb:47:in `id2name'

-- C level backtrace information -------------------------------------------
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x17c77a) [0x7f99df24b77a] vm_dump.c:796
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x5f4c7) [0x7f99df12e4c7] error.c:258
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_bug+0xb7) [0x7f99df12f257] error.c:277
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x11141f) [0x7f99df1e041f] signal.c:609
/lib/libpthread.so.0(+0xf140) [0x7f99deec2140]
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x11fe3c) [0x7f99df1eee3c] string.c:604
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x175fb1) [0x7f99df244fb1] vm_insnhelper.c:404
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x16bcb9) [0x7f99df23acb9] insns.def:1015
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1721ba) [0x7f99df2411ba] vm.c:1220
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_yield+0x47) [0x7f99df2466d7] vm.c:654
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0xdcb21) [0x7f99df1abb21] range.c:491
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x175fb1) [0x7f99df244fb1] vm_insnhelper.c:404
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x16bcb9) [0x7f99df23acb9] insns.def:1015
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1721ba) [0x7f99df2411ba] vm.c:1220
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_yield+0x47) [0x7f99df2466d7] vm.c:654
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_ary_each+0x52) [0x7f99df0fd342] array.c:1478
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x175fb1) [0x7f99df244fb1] vm_insnhelper.c:404
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x16bcb9) [0x7f99df23acb9] insns.def:1015
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1721ba) [0x7f99df2411ba] vm.c:1220
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x17722e) [0x7f99df24622e] vm.c:624
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_catch_obj+0xbe) [0x7f99df2388ae] vm_eval.c:1554
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x16995e) [0x7f99df23895e] vm_eval.c:1530
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x175fb1) [0x7f99df244fb1] vm_insnhelper.c:404
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x16bcb9) [0x7f99df23acb9] insns.def:1015
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1721ba) [0x7f99df2411ba] vm.c:1220
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x173663) [0x7f99df242663] vm_eval.c:66
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_protect+0x15d) [0x7f99df1353ad] eval.c:719
/home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/lib/ruby_debug.so(+0x7bff) [0x7f99dd6a1bff] ruby_debug.c:887
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x17f3e0) [0x7f99df24e3e0] thread.c:4135
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x17db5d) [0x7f99df24cb5d] thread.c:4565
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1818ec) [0x7f99df2508ec] thread.c:4192
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x171154) [0x7f99df240154] insns.def:875
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1721ba) [0x7f99df2411ba] vm.c:1220
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_iseq_eval_main+0xae) [0x7f99df24725e] vm.c:1461
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x64ef2) [0x7f99df133ef2] eval.c:204
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(ruby_exec_node+0x1d) [0x7f99df134c9d] eval.c:251
/home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(ruby_run_node+0x1e) [0x7f99df136c4e] eval.c:244
ruby() [0x4008ab]
/lib/libc.so.6(__libc_start_main+0xf5) [0x7f99de1fb455]
ruby() [0x4008d9]

-- Other runtime information -----------------------------------------------

* Loaded script: debugger.rb

* Loaded features:

    0 enumerator.so
    1 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
    2 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
    3 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    4 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb
    5 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    6 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    7 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
    8 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb
    9 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
   10 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
   11 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
   12 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
   13 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
   14 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
   15 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/prettyprint.rb
   16 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/pp.rb
   17 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/stringio.so
   18 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/socket.so
   19 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/socket.rb
   20 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/thread.rb
   21 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/lib/ruby_debug.so
   22 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest.so
   23 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/digest.rb
   24 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
   25 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/set.rb
   26 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-linecache-1.0.1/lib/trace_nums19.so
   27 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-linecache-1.0.1/lib/tracelines19.rb
   28 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-linecache-1.0.1/lib/linecache19.rb
   29 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/lib/ruby-debug-base.rb
   30 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/readline.so
   31 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/interface.rb
   32 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/columnize-0.3.6/lib/columnize.rb
   33 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/helper.rb
   34 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/quit.rb
   35 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/info.rb
   36 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/jump.rb
   37 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/method.rb
   38 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/edit.rb
   39 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/show.rb
   40 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/trace.rb
   41 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/catchpoint.rb
   42 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/finish.rb
   43 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/stepping.rb
   44 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/continue.rb
   45 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/skip.rb
   46 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/eval.rb
   47 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/breakpoints.rb
   48 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/source.rb
   49 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/list.rb
   50 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/set.rb
   51 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/condition.rb
   52 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/kill.rb
   53 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/variables.rb
   54 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/enable.rb
   55 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/control.rb
   56 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/e2mmap.rb
   57 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/init.rb
   58 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/workspace.rb
   59 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/inspector.rb
   60 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/context.rb
   61 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/extend-command.rb
   62 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/output-method.rb
   63 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/notifier.rb
   64 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/slex.rb
   65 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-token.rb
   66 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb
   67 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/src_encoding.rb
   68 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/magic-file.rb
   69 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/input-method.rb
   70 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/locale.rb
   71 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb
   72 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/irb.rb
   73 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/display.rb
   74 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/tmate.rb
   75 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/help.rb
   76 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/threads.rb
   77 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/save.rb
   78 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/frame.rb
   79 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/commands/reload.rb
   80 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/command.rb
   81 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/pathname.so
   82 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/pathname.rb
   83 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug/processor.rb
   84 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/cli/ruby-debug.rb
   85 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/lib/debugger/version.rb
   86 /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/lib/debugger.rb
   87 /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so

* Process memory map:

00400000-00401000 r-xp 00000000 08:04 666839                             /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
00600000-00601000 rw-p 00000000 08:04 666839                             /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
00f8c000-01933000 rw-p 00000000 00:00 0                                  [heap]
7f99dbde6000-7f99dbdfb000 r-xp 00000000 08:03 55808                      /usr/lib/libgcc_s.so.1
7f99dbdfb000-7f99dbffa000 ---p 00015000 08:03 55808                      /usr/lib/libgcc_s.so.1
7f99dbffa000-7f99dbffb000 rw-p 00014000 08:03 55808                      /usr/lib/libgcc_s.so.1
7f99dc019000-7f99dc02f000 r-xp 00000000 08:04 1712929                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so
7f99dc02f000-7f99dc22e000 ---p 00016000 08:04 1712929                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so
7f99dc22e000-7f99dc233000 rw-p 00015000 08:04 1712929                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so
7f99dc233000-7f99dc23b000 r-xp 00000000 08:04 666989                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/pathname.so
7f99dc23b000-7f99dc43a000 ---p 00008000 08:04 666989                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/pathname.so
7f99dc43a000-7f99dc43b000 rw-p 00007000 08:04 666989                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/pathname.so
7f99dc43b000-7f99dc493000 r-xp 00000000 08:03 3495                       /usr/lib/libncursesw.so.5.9
7f99dc493000-7f99dc692000 ---p 00058000 08:03 3495                       /usr/lib/libncursesw.so.5.9
7f99dc692000-7f99dc696000 r--p 00057000 08:03 3495                       /usr/lib/libncursesw.so.5.9
7f99dc696000-7f99dc697000 rw-p 0005b000 08:03 3495                       /usr/lib/libncursesw.so.5.9
7f99dc697000-7f99dc698000 rw-p 00000000 00:00 0 
7f99dc698000-7f99dc6d4000 r-xp 00000000 08:03 393828                     /lib/libreadline.so.6.2
7f99dc6d4000-7f99dc8d4000 ---p 0003c000 08:03 393828                     /lib/libreadline.so.6.2
7f99dc8d4000-7f99dc8d6000 r--p 0003c000 08:03 393828                     /lib/libreadline.so.6.2
7f99dc8d6000-7f99dc8dc000 rw-p 0003e000 08:03 393828                     /lib/libreadline.so.6.2
7f99dc8dc000-7f99dc8de000 rw-p 00000000 00:00 0 
7f99dc8de000-7f99dc8e4000 r-xp 00000000 08:04 667003                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/readline.so
7f99dc8e4000-7f99dcae3000 ---p 00006000 08:04 667003                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/readline.so
7f99dcae3000-7f99dcae4000 rw-p 00005000 08:04 667003                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/readline.so
7f99dcae4000-7f99dcae6000 r-xp 00000000 08:04 667680                     /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-linecache-1.0.1/lib/trace_nums19.so
7f99dcae6000-7f99dcce6000 ---p 00002000 08:04 667680                     /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-linecache-1.0.1/lib/trace_nums19.so
7f99dcce6000-7f99dcce7000 rw-p 00002000 08:04 667680                     /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-linecache-1.0.1/lib/trace_nums19.so
7f99dcce7000-7f99dccea000 r-xp 00000000 08:04 666993                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest.so
7f99dccea000-7f99dceea000 ---p 00003000 08:04 666993                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest.so
7f99dceea000-7f99dceeb000 rw-p 00003000 08:04 666993                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest.so
7f99dceeb000-7f99dcf00000 r-xp 00000000 08:03 336                        /usr/lib/libz.so.1.2.6
7f99dcf00000-7f99dd0ff000 ---p 00015000 08:03 336                        /usr/lib/libz.so.1.2.6
7f99dd0ff000-7f99dd100000 r--p 00014000 08:03 336                        /usr/lib/libz.so.1.2.6
7f99dd100000-7f99dd101000 rw-p 00015000 08:03 336                        /usr/lib/libz.so.1.2.6
7f99dd101000-7f99dd270000 r-xp 00000000 08:04 3808                       /home/yorickpeterse/.rvm/usr/lib/libcrypto.so.0.9.8
7f99dd270000-7f99dd470000 ---p 0016f000 08:04 3808                       /home/yorickpeterse/.rvm/usr/lib/libcrypto.so.0.9.8
7f99dd470000-7f99dd495000 rw-p 0016f000 08:04 3808                       /home/yorickpeterse/.rvm/usr/lib/libcrypto.so.0.9.8
7f99dd495000-7f99dd499000 rw-p 00000000 00:00 0 
7f99dd499000-7f99dd49a000 r-xp 00000000 08:04 1711103                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
7f99dd49a000-7f99dd699000 ---p 00001000 08:04 1711103                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
7f99dd699000-7f99dd69a000 rw-p 00000000 08:04 1711103                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
7f99dd69a000-7f99dd6a5000 r-xp 00000000 08:04 667888                     /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/lib/ruby_debug.so
7f99dd6a5000-7f99dd8a4000 ---p 0000b000 08:04 667888                     /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/lib/ruby_debug.so
7f99dd8a4000-7f99dd8a5000 rw-p 0000a000 08:04 667888                     /home/yorickpeterse/.rvm/gems/ruby-1.9.3-p125@playground/gems/debugger-1.0.0/lib/ruby_debug.so
7f99dd8a5000-7f99dd8c8000 r-xp 00000000 08:04 666996                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/socket.so
7f99dd8c8000-7f99ddac8000 ---p 00023000 08:04 666996                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/socket.so
7f99ddac8000-7f99ddac9000 rw-p 00023000 08:04 666996                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/socket.so
7f99ddac9000-7f99ddad0000 r-xp 00000000 08:04 667004                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/stringio.so
7f99ddad0000-7f99ddccf000 ---p 00007000 08:04 667004                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/stringio.so
7f99ddccf000-7f99ddcd0000 rw-p 00006000 08:04 667004                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/stringio.so
7f99ddcd0000-7f99ddcd2000 r-xp 00000000 08:04 1712920                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f99ddcd2000-7f99dded2000 ---p 00002000 08:04 1712920                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f99dded2000-7f99dded3000 rw-p 00002000 08:04 1712920                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f99dded3000-7f99dded5000 r-xp 00000000 08:04 1712930                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f99dded5000-7f99de0d4000 ---p 00002000 08:04 1712930                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f99de0d4000-7f99de0d5000 rw-p 00001000 08:04 1712930                    /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f99de0d5000-7f99de0d6000 ---p 00000000 00:00 0 
7f99de0d6000-7f99de1da000 rw-p 00000000 00:00 0 
7f99de1da000-7f99de371000 r-xp 00000000 08:03 392426                     /lib/libc-2.15.so
7f99de371000-7f99de571000 ---p 00197000 08:03 392426                     /lib/libc-2.15.so
7f99de571000-7f99de575000 r--p 00197000 08:03 392426                     /lib/libc-2.15.so
7f99de575000-7f99de577000 rw-p 0019b000 08:03 392426                     /lib/libc-2.15.so
7f99de577000-7f99de57b000 rw-p 00000000 00:00 0 
7f99de57b000-7f99de66e000 r-xp 00000000 08:03 392288                     /lib/libm-2.15.so
7f99de66e000-7f99de86e000 ---p 000f3000 08:03 392288                     /lib/libm-2.15.so
7f99de86e000-7f99de86f000 r--p 000f3000 08:03 392288                     /lib/libm-2.15.so
7f99de86f000-7f99de870000 rw-p 000f4000 08:03 392288                     /lib/libm-2.15.so
7f99de870000-7f99de878000 r-xp 00000000 08:03 392430                     /lib/libcrypt-2.15.so
7f99de878000-7f99dea77000 ---p 00008000 08:03 392430                     /lib/libcrypt-2.15.so
7f99dea77000-7f99dea78000 r--p 00007000 08:03 392430                     /lib/libcrypt-2.15.so
7f99dea78000-7f99dea79000 rw-p 00008000 08:03 392430                     /lib/libcrypt-2.15.so
7f99dea79000-7f99deaa7000 rw-p 00000000 00:00 0 
7f99deaa7000-7f99deaaa000 r-xp 00000000 08:03 391072                     /lib/libdl-2.15.so
7f99deaaa000-7f99deca9000 ---p 00003000 08:03 391072                     /lib/libdl-2.15.so
7f99deca9000-7f99decaa000 r--p 00002000 08:03 391072                     /lib/libdl-2.15.so
7f99decaa000-7f99decab000 rw-p 00003000 08:03 391072                     /lib/libdl-2.15.so
7f99decab000-7f99decb2000 r-xp 00000000 08:03 390592                     /lib/librt-2.15.so
7f99decb2000-7f99deeb1000 ---p 00007000 08:03 390592                     /lib/librt-2.15.so
7f99deeb1000-7f99deeb2000 r--p 00006000 08:03 390592                     /lib/librt-2.15.so
7f99deeb2000-7f99deeb3000 rw-p 00007000 08:03 390592                     /lib/librt-2.15.so
7f99deeb3000-7f99deeca000 r-xp 00000000 08:03 390588                     /lib/libpthread-2.15.so
7f99deeca000-7f99df0c9000 ---p 00017000 08:03 390588                     /lib/libpthread-2.15.so
7f99df0c9000-7f99df0ca000 r--p 00016000 08:03 390588                     /lib/libpthread-2.15.so
7f99df0ca000-7f99df0cb000 rw-p 00017000 08:03 390588                     /lib/libpthread-2.15.so
7f99df0cb000-7f99df0cf000 rw-p 00000000 00:00 0 
7f99df0cf000-7f99df2e8000 r-xp 00000000 08:04 666841                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9.1
7f99df2e8000-7f99df4e7000 ---p 00219000 08:04 666841                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9.1
7f99df4e7000-7f99df4ef000 rw-p 00218000 08:04 666841                     /home/yorickpeterse/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9.1
7f99df4ef000-7f99df50b000 rw-p 00000000 00:00 0 
7f99df50b000-7f99df52c000 r-xp 00000000 08:03 392641                     /lib/ld-2.15.so
7f99df543000-7f99df708000 r--p 00000000 08:03 55796                      /usr/lib/locale/locale-archive
7f99df708000-7f99df70d000 rw-p 00000000 00:00 0 
7f99df729000-7f99df72c000 rw-p 00000000 00:00 0 
7f99df72c000-7f99df72d000 r--p 00021000 08:03 392641                     /lib/ld-2.15.so
7f99df72d000-7f99df72e000 rw-p 00022000 08:03 392641                     /lib/ld-2.15.so
7f99df72e000-7f99df72f000 rw-p 00000000 00:00 0 
7fff50a06000-7fff50a27000 rw-p 00000000 00:00 0                          [stack]
7fff50b9e000-7fff50b9f000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]


[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted
[yorickpeterse@yorickpeterse in playground]$

line number wrongly shown as zero in backtrace

(rdb:1) backtrace
--> #0 RSpec::Mocks::MethodDouble.add_stub(error_generator#RSpec::Mocks::ErrorGe...,...) 
       at line /Users/betelgeuse/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.10.1/lib/rspec/mocks/method_double.rb:155
    #1 RSpec::Mocks::Proxy.add_stub(location#String, method_name#Symbol) 
       at line /Users/betelgeuse/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.10.1/lib/rspec/mocks/proxy.rb:0
    #2 RSpec::Mocks::Methods.stub(message_or_hash#Symbol) 
       at line /Users/betelgeuse/.rvm/gems/ruby-1.9.3-p194/gems/rspec-mocks-2.10.1/lib/rspec/mocks/methods.rb:35

Here proxy.rb is really calling from line 78 so the line number in the backtrace is wrong.

reload/autoreload not working

I got the commands "reload" and "set autoreload" to work in the following way:

I start the server with "rails s --debug"
In my code I set breakpoints via "debugger".
When I hit a breakpoint and change the source code I can see the changed code e.g. when I call "list=".
However, when I call "continue" the old code is executed.
I this desired behaviour or a bug?
And if it's a bug, is it a bug in debugger or should "rails server" take care of that?

my configuration:
OSX 10.7.5
Rails 3.2.3
ruby-1.9.3-p194 and ruby-1.9.3-p286 (same behaviour)

catch doesn't work with 1.9.2 and rails 2.3.2.

It just fails to work:

$ rvm  1.9.2@rails232 do rdebug ./script/console -- --debugger
/storage/personal/work/coding/nventory/server/script/console:2
require File.dirname(__FILE__) + '/../config/boot'
(rdb:1) catch Exception
Catch exception Exception.
(rdb:1) cont
=> Debugger enabled
Loading development environment (Rails 2.3.2)
...
Gem::SourceIndex#initialize called from /estorage/h/f/.rvm/gems/ruby-1.9.2-p320@rails232/gems/rails-2.3.2/lib/rails/vendor_gem_source_index.rb:100.
/estorage/h/f/.rvm/gems/ruby-1.9.2-p320@rails232/gems/rails-2.3.2/lib/rails/gem_dependency.rb:239:in `==': undefined method `name' for "RedCloth":String (NoMethodError)
        from /estorage/h/f/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:217:in `==='
        from /estorage/h/f/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:217:in `block in matching_specs'

...
$ rvm  1.9.2@rails232 do rdebug ./script/console -- --debugger
/storage/personal/work/coding/nventory/server/script/console:2
require File.dirname(__FILE__) + '/../config/boot'
(rdb:1) show version
ruby-debug 1.2.0
(rdb:1) b gem_dependency.rb:239
*** No source file named gem_dependency.rb
Set breakpoint anyway? (y/n) y
Breakpoint 1 file gem_dependency.rb, line 239
(rdb:1) cont
=> Debugger enabled
Loading development environment (Rails 2.3.2)
...
/estorage/h/f/.rvm/gems/ruby-1.9.2-p320@rails232/gems/rails-2.3.2/lib/rails/gem_dependency.rb:239:in `==': undefined method `name' for "RedCloth":String (NoMethodError)
        from /estorage/h/f/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:217:in `==='
        from /estorage/h/f/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:217:in `block in matching_specs'

Please, fix this. Thanks.

Connection refused

.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.4/lib/ruby-debug.rb:103:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)

Doesn't build with ruby 1.9.3-p194

When I try to install debugger under Ruby 1.9.3-p194, I get the following errors:

Installing debugger-linecache (1.0.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/wmorgan/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed


No source for ruby-1.9.3-p194 provided with debugger-ruby_core_source gem.


*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/wmorgan/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include
--without-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib

Gem files will remain installed in /Users/wmorgan/.rvm/gems/ruby-1.9.3-p194@turbovote/gems/debugger-linecache-1.0.1 for inspection.
Results logged to /Users/wmorgan/.rvm/gems/ruby-1.9.3-p194@turbovote/gems/debugger-linecache-1.0.1/ext/trace_nums/gem_make.out
An error occured while installing debugger-linecache (1.0.1), and Bundler cannot continue.
Make sure that gem install debugger-linecache -v '1.0.1' succeeds before bundling.

on Ruby-2.0.0dev

∴ ruby -v
ruby 2.0.0dev (2012-07-27) [x86_64-linux]

∴ gem install debugger
Building native extensions. This could take a while...
ERROR: Error installing debugger:
ERROR: Failed to build gem native extension.

    /opt/ruby/bin/ruby extconf.rb

checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
Makefile creation failed


No source for ruby-2.0.0 (revision 0) provided with debugger-ruby_core_source gem.


*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/ruby/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include
--without-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib

Gem files will remain installed in /opt/ruby/lib/ruby/gems/gems/debugger-1.2.0 for inspection.
Results logged to /opt/ruby/lib/ruby/gems/gems/debugger-1.2.0/ext/ruby_debug/gem_make.out

hanging pow

I run pow in development, and have had this happen a couple of times: when a request hits a debugger line, the app stops, waiting for input. (In the pow server log, I can see the output that I would get on the command line, if I were running rails server.) This effectively hangs my app, and I have to touch tmp/restart.txt and remove the debugger line in order to continue.

Is there a way to make debugger skip interactive mode when there isn't an interactive tty attached to it?

Engines live update fails

Hey!

Maybe this issue is due to a bad use I'm giving to the gem.

When I debug the code inside an engine, I have realized that after I change it, if I trace it again, I don't see the current piece of code, just the previous version (before I updated it).

I hope this helps or in case I'm doing something wrong, can help me to understand the gem better.

rdebug --emacs 3 gives Segmentation fault on ruby-1.9.3

I had the same problem with ruby-1.9.3p194 on Darwin. (I assume it's a 1.9.3 thing, since debugger on 1.9.2 works fine for me on Linux).

$ ruby --version
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

$ rdebug --version
debugger 1.1.1

$ rdebug --emacs 3 asdf.rb

starting
[-4, 5] in /home/akatov/temp/asdf.rb
=> 1  x = 10
   2  --x
   3  puts x
   4  puts File.absolute_path(__FILE__)
   5  
stopped
breakpoints
No breakpoints.

stack
--> /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:47: [BUG] Segmentation fault
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0027 p:---- s:0133 b:0133 l:000132 d:000132 CFUNC  :id2name
c:0026 p:0165 s:0130 b:0129 l:000128 d:000128 METHOD /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:47
c:0025 p:0180 s:0117 b:0117 l:000116 d:000116 METHOD /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:93
c:0024 p:0056 s:0103 b:0103 l:000094 d:000102 BLOCK  /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:167
c:0023 p:---- s:0100 b:0100 l:000099 d:000099 FINISH
c:0022 p:---- s:0098 b:0098 l:000097 d:000097 CFUNC  :each
c:0021 p:0031 s:0095 b:0095 l:000094 d:000094 METHOD /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:161
c:0020 p:0080 s:0092 b:0092 l:000091 d:000091 METHOD /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb:275
c:0019 p:0036 s:0084 b:0084 l:000083 d:000083 METHOD /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb:336
c:0018 p:0190 s:0077 b:0077 l:000076 d:000076 METHOD /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb:305
c:0017 p:0075 s:0072 b:0072 l:0014b0 d:0014b0 METHOD /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb:244
c:0016 p:0017 s:0062 b:0062 l:000061 d:000061 METHOD /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb:173
c:0015 p:0023 s:0056 b:0056 l:000050 d:000055 BLOCK  (eval):5
c:0014 p:0019 s:0054 b:0054 l:000053 d:000053 METHOD <internal:prelude>:10
c:0013 p:0013 s:0051 b:0051 l:000050 d:000050 METHOD (eval):3
c:0012 p:0022 s:0047 b:0047 l:000046 d:000046 METHOD /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug-base.rb:54
c:0011 p:---- s:0042 b:0042 l:000041 d:000041 FINISH
c:0010 p:0002 s:0040 b:0040 l:001f80 d:001f80 TOP    /home/akatov/temp/asdf.rb:1
c:0009 p:---- s:0037 b:0037 l:000036 d:000036 FINISH
c:0008 p:---- s:0035 b:0035 l:000034 d:000034 CFUNC  :debug_load
c:0007 p:0202 s:0029 b:0029 l:000028 d:000028 METHOD /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/bin/rdebug:124
c:0006 p:1221 s:0023 b:0023 l:001778 d:001778 TOP    /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/bin/rdebug:378
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :load
c:0003 p:0127 s:0007 b:0007 l:001df8 d:0003b0 EVAL   /home/akatov/.rvm/gems/ruby-1.9.3-p125/bin/rdebug:19
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001df8 d:001df8 TOP   

-- Ruby level backtrace information ----------------------------------------
/home/akatov/.rvm/gems/ruby-1.9.3-p125/bin/rdebug:19:in `<main>'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/bin/rdebug:19:in `load'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/bin/rdebug:378:in `<top (required)>'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/bin/rdebug:124:in `debug_program'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/bin/rdebug:124:in `debug_load'
/home/akatov/temp/asdf.rb:1:in `<top (required)>'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug-base.rb:54:in `at_line'
(eval):3:in `at_line'
<internal:prelude>:10:in `synchronize'
(eval):5:in `block in at_line'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb:173:in `at_line'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb:244:in `process_commands'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb:305:in `preloop'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb:336:in `annotation'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb:275:in `one_cmd'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:161:in `execute'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:161:in `each'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:167:in `block in execute'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:93:in `print_frame'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:47:in `get_frame_call'
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb:47:in `id2name'

-- C level backtrace information -------------------------------------------
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x17be35) [0x7f2c096ace35] vm_dump.c:796
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x5d04b) [0x7f2c0958e04b] error.c:258
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_bug+0xb7) [0x7f2c0958eea7] error.c:277
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1104df) [0x7f2c096414df] signal.c:609
/lib/x86_64-linux-gnu/libc.so.6(+0x36420) [0x7f2c091c6420]
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x11f19c) [0x7f2c0965019c] string.c:604
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x175591) [0x7f2c096a6591] vm_insnhelper.c:404
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x16b1e9) [0x7f2c0969c1e9] insns.def:1015
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1716ea) [0x7f2c096a26ea] vm.c:1220
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_yield+0x47) [0x7f2c096a7cf7] vm.c:654
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0xdaf91) [0x7f2c0960bf91] range.c:491
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x175591) [0x7f2c096a6591] vm_insnhelper.c:404
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x16b1e9) [0x7f2c0969c1e9] insns.def:1015
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1716ea) [0x7f2c096a26ea] vm.c:1220
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x172b93) [0x7f2c096a3b93] vm_eval.c:66
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_protect+0xda) [0x7f2c0959502a] eval.c:719
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby_debug.so(+0x78af) [0x7f2c079a98af] ruby_debug.c:887
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x17eb70) [0x7f2c096afb70] thread.c:4135
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x17d27d) [0x7f2c096ae27d] thread.c:4565
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x180fcc) [0x7f2c096b1fcc] thread.c:4192
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x170684) [0x7f2c096a1684] insns.def:875
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1716ea) [0x7f2c096a26ea] vm.c:1220
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_iseq_eval+0x1f0) [0x7f2c096a87a0] vm.c:1447
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x65ff3) [0x7f2c09596ff3] load.c:310
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_load+0x2d) [0x7f2c09597dfd] load.c:340
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_load_protect+0x9a) [0x7f2c09597eaa] load.c:350
/home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby_debug.so(+0x66ac) [0x7f2c079a86ac] ruby_debug.c:1501
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x175591) [0x7f2c096a6591] vm_insnhelper.c:404
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x16b1e9) [0x7f2c0969c1e9] insns.def:1015
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1716ea) [0x7f2c096a26ea] vm.c:1220
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_iseq_eval+0x1f0) [0x7f2c096a87a0] vm.c:1447
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x65ff3) [0x7f2c09596ff3] load.c:310
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x66158) [0x7f2c09597158] load.c:383
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x175591) [0x7f2c096a6591] vm_insnhelper.c:404
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x16b1e9) [0x7f2c0969c1e9] insns.def:1015
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x1716ea) [0x7f2c096a26ea] vm.c:1220
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(rb_iseq_eval_main+0xae) [0x7f2c096a889e] vm.c:1461
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x62bf2) [0x7f2c09593bf2] eval.c:204
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(ruby_exec_node+0x1d) [0x7f2c0959499d] eval.c:251
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(ruby_run_node+0x1e) [0x7f2c09596a3e] eval.c:244
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/bin/ruby() [0x4007fb] main.c:38
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f2c091b130d]
/home/akatov/.rvm/rubies/ruby-1.9.3-p125/bin/ruby() [0x400829] main.c:40

-- Other runtime information -----------------------------------------------

* Loaded script: /home/akatov/temp/asdf.rb

* Loaded features:

    0 enumerator.so
    1 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
    2 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
    3 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    4 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb
    5 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    6 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    7 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
    8 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb
    9 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
   10 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
   11 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
   12 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
   13 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
   14 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
   15 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/optparse.rb
   16 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/ostruct.rb
   17 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/prettyprint.rb
   18 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/pp.rb
   19 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/stringio.so
   20 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/socket.so
   21 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/socket.rb
   22 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/thread.rb
   23 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby_debug.so
   24 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest.so
   25 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/digest.rb
   26 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
   27 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/set.rb
   28 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-linecache-1.1.1/lib/trace_nums.so
   29 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-linecache-1.1.1/lib/tracelines19.rb
   30 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-linecache-1.1.1/lib/linecache19.rb
   31 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug-base.rb
   32 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/readline.so
   33 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/interface.rb
   34 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/columnize-0.3.6/lib/columnize.rb
   35 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/helper.rb
   36 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/finish.rb
   37 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/info.rb
   38 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/show.rb
   39 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/display.rb
   40 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/jump.rb
   41 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/quit.rb
   42 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/save.rb
   43 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/help.rb
   44 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/tmate.rb
   45 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/catchpoint.rb
   46 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/breakpoints.rb
   47 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/e2mmap.rb
   48 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/init.rb
   49 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/workspace.rb
   50 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/inspector.rb
   51 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/context.rb
   52 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/extend-command.rb
   53 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/output-method.rb
   54 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/notifier.rb
   55 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/slex.rb
   56 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-token.rb
   57 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/ruby-lex.rb
   58 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/src_encoding.rb
   59 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/magic-file.rb
   60 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/input-method.rb
   61 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/locale.rb
   62 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb.rb
   63 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/irb.rb
   64 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/continue.rb
   65 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/threads.rb
   66 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/set.rb
   67 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/trace.rb
   68 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/reload.rb
   69 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/skip.rb
   70 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/frame.rb
   71 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/condition.rb
   72 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/list.rb
   73 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/stepping.rb
   74 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/control.rb
   75 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/kill.rb
   76 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/variables.rb
   77 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/edit.rb
   78 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/method.rb
   79 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/source.rb
   80 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/enable.rb
   81 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/commands/eval.rb
   82 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/command.rb
   83 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/pathname.so
   84 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/pathname.rb
   85 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug/processor.rb
   86 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby-debug.rb
   87 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/debugger/version.rb
   88 /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/debugger.rb
   89 /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so

* Process memory map:

00400000-00401000 r-xp 00000000 00:14 6556159                            /home/akatov/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
00600000-00601000 r--p 00000000 00:14 6556159                            /home/akatov/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
00601000-00602000 rw-p 00001000 00:14 6556159                            /home/akatov/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
01358000-03df0000 rw-p 00000000 00:00 0                                  [heap]
7f2c06128000-7f2c0613d000 r-xp 00000000 08:06 1572908                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f2c0613d000-7f2c0633c000 ---p 00015000 08:06 1572908                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f2c0633c000-7f2c0633d000 r--p 00014000 08:06 1572908                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f2c0633d000-7f2c0633e000 rw-p 00015000 08:06 1572908                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f2c0633e000-7f2c06354000 r-xp 00000000 00:14 6556861                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so
7f2c06354000-7f2c06553000 ---p 00016000 00:14 6556861                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so
7f2c06553000-7f2c06558000 r--p 00015000 00:14 6556861                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so
7f2c06558000-7f2c06559000 rw-p 0001a000 00:14 6556861                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/single_byte.so
7f2c06559000-7f2c06561000 r-xp 00000000 00:14 6556829                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/pathname.so
7f2c06561000-7f2c06760000 ---p 00008000 00:14 6556829                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/pathname.so
7f2c06760000-7f2c06761000 r--p 00007000 00:14 6556829                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/pathname.so
7f2c06761000-7f2c06762000 rw-p 00008000 00:14 6556829                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/pathname.so
7f2c06762000-7f2c06784000 r-xp 00000000 08:06 1579776                    /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f2c06784000-7f2c06984000 ---p 00022000 08:06 1579776                    /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f2c06984000-7f2c06988000 r--p 00022000 08:06 1579776                    /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f2c06988000-7f2c06989000 rw-p 00026000 08:06 1579776                    /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f2c06989000-7f2c069c2000 r-xp 00000000 08:06 1572977                    /lib/x86_64-linux-gnu/libreadline.so.6.2
7f2c069c2000-7f2c06bc2000 ---p 00039000 08:06 1572977                    /lib/x86_64-linux-gnu/libreadline.so.6.2
7f2c06bc2000-7f2c06bc4000 r--p 00039000 08:06 1572977                    /lib/x86_64-linux-gnu/libreadline.so.6.2
7f2c06bc4000-7f2c06bca000 rw-p 0003b000 08:06 1572977                    /lib/x86_64-linux-gnu/libreadline.so.6.2
7f2c06bca000-7f2c06bcb000 rw-p 00000000 00:00 0 
7f2c06bcb000-7f2c06bd1000 r-xp 00000000 00:14 6556827                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/readline.so
7f2c06bd1000-7f2c06dd0000 ---p 00006000 00:14 6556827                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/readline.so
7f2c06dd0000-7f2c06dd1000 r--p 00005000 00:14 6556827                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/readline.so
7f2c06dd1000-7f2c06dd2000 rw-p 00006000 00:14 6556827                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/readline.so
7f2c06dd2000-7f2c06dd4000 r-xp 00000000 00:14 7078823                    /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-linecache-1.1.1/lib/trace_nums.so
7f2c06dd4000-7f2c06fd3000 ---p 00002000 00:14 7078823                    /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-linecache-1.1.1/lib/trace_nums.so
7f2c06fd3000-7f2c06fd4000 r--p 00001000 00:14 7078823                    /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-linecache-1.1.1/lib/trace_nums.so
7f2c06fd4000-7f2c06fd5000 rw-p 00002000 00:14 7078823                    /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-linecache-1.1.1/lib/trace_nums.so
7f2c06fd5000-7f2c06fd8000 r-xp 00000000 00:14 6556835                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest.so
7f2c06fd8000-7f2c071d7000 ---p 00003000 00:14 6556835                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest.so
7f2c071d7000-7f2c071d8000 r--p 00002000 00:14 6556835                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest.so
7f2c071d8000-7f2c071d9000 rw-p 00003000 00:14 6556835                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest.so
7f2c071d9000-7f2c071f0000 r-xp 00000000 08:06 1573092                    /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f2c071f0000-7f2c073ef000 ---p 00017000 08:06 1573092                    /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f2c073ef000-7f2c073f0000 r--p 00016000 08:06 1573092                    /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f2c073f0000-7f2c073f1000 rw-p 00017000 08:06 1573092                    /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f2c073f1000-7f2c07579000 r-xp 00000000 08:06 1573014                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f2c07579000-7f2c07779000 ---p 00188000 08:06 1573014                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f2c07779000-7f2c07792000 r--p 00188000 08:06 1573014                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f2c07792000-7f2c0779c000 rw-p 001a1000 08:06 1573014                    /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f2c0779c000-7f2c077a0000 rw-p 00000000 00:00 0 
7f2c077a0000-7f2c077a1000 r-xp 00000000 00:14 6556899                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
7f2c077a1000-7f2c079a0000 ---p 00001000 00:14 6556899                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
7f2c079a0000-7f2c079a1000 r--p 00000000 00:14 6556899                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
7f2c079a1000-7f2c079a2000 rw-p 00001000 00:14 6556899                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
7f2c079a2000-7f2c079ad000 r-xp 00000000 00:14 7080780                    /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby_debug.so
7f2c079ad000-7f2c07bac000 ---p 0000b000 00:14 7080780                    /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby_debug.so
7f2c07bac000-7f2c07bad000 r--p 0000a000 00:14 7080780                    /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby_debug.so
7f2c07bad000-7f2c07bae000 rw-p 0000b000 00:14 7080780                    /home/akatov/.rvm/gems/ruby-1.9.3-p125/gems/debugger-1.1.1/lib/ruby_debug.so
7f2c07bae000-7f2c07bd1000 r-xp 00000000 00:14 6556819                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/socket.so
7f2c07bd1000-7f2c07dd0000 ---p 00023000 00:14 6556819                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/socket.so
7f2c07dd0000-7f2c07dd1000 r--p 00022000 00:14 6556819                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/socket.so
7f2c07dd1000-7f2c07dd2000 rw-p 00023000 00:14 6556819                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/socket.so
7f2c07dd2000-7f2c07dd9000 r-xp 00000000 00:14 6556905                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/stringio.so
7f2c07dd9000-7f2c07fd8000 ---p 00007000 00:14 6556905                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/stringio.so
7f2c07fd8000-7f2c07fd9000 r--p 00006000 00:14 6556905                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/stringio.so
7f2c07fd9000-7f2c07fda000 rw-p 00007000 00:14 6556905                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/stringio.so
7f2c07fda000-7f2c07fdc000 r-xp 00000000 00:14 6556856                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f2c07fdc000-7f2c081dc000 ---p 00002000 00:14 6556856                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f2c081dc000-7f2c081dd000 r--p 00002000 00:14 6556856                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f2c081dd000-7f2c081de000 rw-p 00003000 00:14 6556856                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f2c081de000-7f2c081e0000 r-xp 00000000 00:14 6556851                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f2c081e0000-7f2c083df000 ---p 00002000 00:14 6556851                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f2c083df000-7f2c083e0000 r--p 00001000 00:14 6556851                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f2c083e0000-7f2c083e1000 rw-p 00002000 00:14 6556851                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f2c083e1000-7f2c086aa000 r--p 00000000 08:06 4986265                    /usr/lib/locale/locale-archive
7f2c086aa000-7f2c0872d000 r-xp 00000000 08:06 1578508                    /lib/x86_64-linux-gnu/libm-2.13.so
7f2c0872d000-7f2c0892c000 ---p 00083000 08:06 1578508                    /lib/x86_64-linux-gnu/libm-2.13.so
7f2c0892c000-7f2c0892d000 r--p 00082000 08:06 1578508                    /lib/x86_64-linux-gnu/libm-2.13.so
7f2c0892d000-7f2c0892e000 rw-p 00083000 08:06 1578508                    /lib/x86_64-linux-gnu/libm-2.13.so
7f2c0892e000-7f2c08937000 r-xp 00000000 08:06 1578506                    /lib/x86_64-linux-gnu/libcrypt-2.13.so
7f2c08937000-7f2c08b37000 ---p 00009000 08:06 1578506                    /lib/x86_64-linux-gnu/libcrypt-2.13.so
7f2c08b37000-7f2c08b38000 r--p 00009000 08:06 1578506                    /lib/x86_64-linux-gnu/libcrypt-2.13.so
7f2c08b38000-7f2c08b39000 rw-p 0000a000 08:06 1578506                    /lib/x86_64-linux-gnu/libcrypt-2.13.so
7f2c08b39000-7f2c08b67000 rw-p 00000000 00:00 0 
7f2c08b67000-7f2c08b69000 r-xp 00000000 08:06 1578507                    /lib/x86_64-linux-gnu/libdl-2.13.so
7f2c08b69000-7f2c08d69000 ---p 00002000 08:06 1578507                    /lib/x86_64-linux-gnu/libdl-2.13.so
7f2c08d69000-7f2c08d6a000 r--p 00002000 08:06 1578507                    /lib/x86_64-linux-gnu/libdl-2.13.so
7f2c08d6a000-7f2c08d6b000 rw-p 00003000 08:06 1578507                    /lib/x86_64-linux-gnu/libdl-2.13.so
7f2c08d6b000-7f2c08d72000 r-xp 00000000 08:06 1578520                    /lib/x86_64-linux-gnu/librt-2.13.so
7f2c08d72000-7f2c08f71000 ---p 00007000 08:06 1578520                    /lib/x86_64-linux-gnu/librt-2.13.so
7f2c08f71000-7f2c08f72000 r--p 00006000 08:06 1578520                    /lib/x86_64-linux-gnu/librt-2.13.so
7f2c08f72000-7f2c08f73000 rw-p 00007000 08:06 1578520                    /lib/x86_64-linux-gnu/librt-2.13.so
7f2c08f73000-7f2c08f8b000 r-xp 00000000 08:06 1578518                    /lib/x86_64-linux-gnu/libpthread-2.13.so
7f2c08f8b000-7f2c0918a000 ---p 00018000 08:06 1578518                    /lib/x86_64-linux-gnu/libpthread-2.13.so
7f2c0918a000-7f2c0918b000 r--p 00017000 08:06 1578518                    /lib/x86_64-linux-gnu/libpthread-2.13.so
7f2c0918b000-7f2c0918c000 rw-p 00018000 08:06 1578518                    /lib/x86_64-linux-gnu/libpthread-2.13.so
7f2c0918c000-7f2c09190000 rw-p 00000000 00:00 0 
7f2c09190000-7f2c09327000 r-xp 00000000 08:06 1578504                    /lib/x86_64-linux-gnu/libc-2.13.so
7f2c09327000-7f2c09526000 ---p 00197000 08:06 1578504                    /lib/x86_64-linux-gnu/libc-2.13.so
7f2c09526000-7f2c0952a000 r--p 00196000 08:06 1578504                    /lib/x86_64-linux-gnu/libc-2.13.so
7f2c0952a000-7f2c0952b000 rw-p 0019a000 08:06 1578504                    /lib/x86_64-linux-gnu/libc-2.13.so
7f2c0952b000-7f2c09531000 rw-p 00000000 00:00 0 
7f2c09531000-7f2c09749000 r-xp 00000000 00:14 6556161                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9.1
7f2c09749000-7f2c09948000 ---p 00218000 00:14 6556161                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9.1
7f2c09948000-7f2c0994d000 r--p 00217000 00:14 6556161                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9.1
7f2c0994d000-7f2c09951000 rw-p 0021c000 00:14 6556161                    /home/akatov/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9.1
7f2c09951000-7f2c0996d000 rw-p 00000000 00:00 0 
7f2c0996d000-7f2c0998e000 r-xp 00000000 08:06 1576825                    /lib/x86_64-linux-gnu/ld-2.13.so
7f2c09a5b000-7f2c09b61000 rw-p 00000000 00:00 0 
7f2c09b86000-7f2c09b87000 rw-p 00000000 00:00 0 
7f2c09b87000-7f2c09b88000 ---p 00000000 00:00 0 
7f2c09b88000-7f2c09b8d000 rw-p 00000000 00:00 0 
7f2c09b8d000-7f2c09b8e000 r--p 00020000 08:06 1576825                    /lib/x86_64-linux-gnu/ld-2.13.so
7f2c09b8e000-7f2c09b90000 rw-p 00021000 08:06 1576825                    /lib/x86_64-linux-gnu/ld-2.13.so
7fff3e67f000-7fff3e6a0000 rw-p 00000000 00:00 0                          [stack]
7fff3e6ad000-7fff3e6ae000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]


[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

[1]    26321 abort      rdebug --emacs 3 asdf.rb

Improve existing test suite

  • There are a number of broken tests that were inherited, see test/test-*.rb
  • Tests have a lot of commented code, are sometimes inconsistent and have a lot of repetitive setup (there isn't a *_helper.rb).

Ruby 1.9.3-p327 support

Hi, getting this error after upgrading to 1.9.3-p327:

Installing debugger-linecache (1.1.2) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /home/user/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb 
checking for vm_core.h... no
checking for vm_core.h... no

officially support ruby 2.X

I do not forsee spending anytime on this in the near future. Any pull requests to help make this happen would be greatly appreciated by the ruby community.
#68 gets 2.0.0 partially working but the test suite does not work. I will not consider 2.0.0 officially supported or close this ticket until tests are passing. Here is what I see when I run tests:

$ rake
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
/Users/me/Developer/.rbenv/versions/2.0.0-p0/bin/ruby -I"lib" -I"/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib" "/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/breakpoints_test.rb" "test/conditions_test.rb" "test/continue_test.rb" "test/display_test.rb" "test/edit_test.rb" "test/eval_test.rb" "test/finish_test.rb" "test/frame_test.rb" "test/help_test.rb" "test/info_test.rb" "test/irb_test.rb" "test/jump_test.rb" "test/kill_test.rb" "test/list_test.rb" "test/method_test.rb" "test/post_mortem_test.rb" "test/quit_test.rb" "test/reload_test.rb" "test/restart_test.rb" "test/save_test.rb" "test/set_test.rb" "test/show_test.rb" "test/source_test.rb" "test/stepping_test.rb" "test/thread_test.rb" "test/tmate_test.rb" "test/trace_test.rb" "test/variables_test.rb" 
/Users/me/code/gems/debugger/lib/ruby_debug.bundle: warning: already initialized constant Debugger::VERSION
/Users/me/code/gems/debugger/lib/debugger/version.rb:4: warning: previous definition of VERSION was here
Run options: --seed 21745

# Running tests:

................................................................S.....dyld: lazy symbol binding failed: Symbol not found: _rb_vm_get_sourceline
  Referenced from: /Users/me/code/gems/debugger/lib/ruby_debug.bundle
  Expected in: flat namespace

dyld: Symbol not found: _rb_vm_get_sourceline
  Referenced from: /Users/me/code/gems/debugger/lib/ruby_debug.bundle
  Expected in: flat namespace

rake aborted!
Command failed with status (): [/Users/me/Developer/.rbenv/versions/2.0.0-...]
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/file_utils.rb:82:in `ruby'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/testtask.rb:99:in `block (2 levels) in define'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:60:in `verbose'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/testtask.rb:98:in `block in define'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/me/Developer/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/me/code/gems/debugger/bundle/ruby/2.0.0/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'

Also, a bug ticket on debuggers and ruby 2.0, https://bugs.ruby-lang.org/issues/7214, from #44

gem install debugger -- --with-ruby-include=PATH_TO_HEADERS

When I tried to install the debugger gem, I got this error. Im using ruby 1.9.3dev (2011-09-23 revision 33323) [x86_64-darwin11.3.0]

Building native extensions.  This could take a while...
ERROR:  Error installing debugger:
        ERROR: Failed to build gem native extension.

        /Users/trongducdong/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby extconf.rb --with-ruby-include=PATH_TO_HEADERS
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-rc1 provided with debugger-ruby_core_source gem.
**************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/Users/trongducdong/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby
        --with-ruby-dir
        --without-ruby-dir
        --with-ruby-include=${ruby-dir}/include
        --with-ruby-lib
        --without-ruby-lib=${ruby-dir}/lib


Gem files will remain installed in /Users/trongducdong/.rvm/gems/ruby-1.9.3-rc1/gems/debugger-linecache-1.1.1 for inspection.
Results logged to /Users/trongducdong/.rvm/gems/ruby-1.9.3-rc1/gems/debugger-linecache-1.1.1/ext/trace_nums/gem_make.out

Arrow keys doesn't work

Hi,

when pressing arrow keys for command history or walking through characters i only get output like "^[[D^[[A^[[C^[[B".

Linux 3.2.0-24-generic-pae
ruby-1.9.3-p194
rvm 1.13.4

debugger (1.1.3)
debugger-linecache (~> 1.1.1)

Couldn't find file to include 'VERSION' from lib/linecache19.rb

$ gem install debugger
Fetching: columnize-0.3.6.gem (100%)
Fetching: debugger-ruby_core_source-1.1.3.gem (100%)
Fetching: debugger-linecache-1.1.1.gem (100%)
Building native extensions.  This could take a while...
Fetching: debugger-1.1.4.gem (100%)
Building native extensions.  This could take a while...
Successfully installed columnize-0.3.6
Successfully installed debugger-ruby_core_source-1.1.3
Successfully installed debugger-linecache-1.1.1
Successfully installed debugger-1.1.4
4 gems installed
Installing ri documentation for columnize-0.3.6...
Installing ri documentation for debugger-ruby_core_source-1.1.3...
Installing ri documentation for debugger-linecache-1.1.1...
Couldn't find file to include 'VERSION' from lib/linecache19.rb
Installing ri documentation for debugger-1.1.4...
Installing RDoc documentation for columnize-0.3.6...
Installing RDoc documentation for debugger-ruby_core_source-1.1.3...
Installing RDoc documentation for debugger-linecache-1.1.1...
Couldn't find file to include 'VERSION' from lib/linecache19.rb
Installing RDoc documentation for debugger-1.1.4...

where/bt does not in fact give a backtrace

'where' used to segfault for me, as in #1.

That's fixed in 1.1.2/1.13, it doesn't segfault anymore.

But it doesn't actually give a stacktrace, it only gives the first line of a stack trace. A stacktrace is awfully useful. The first line of one, not so much.


(rdb:1) where
--> #0 at line /home/rochkind/catalyst/lib/hip_pilot.rb:119
(rdb:1) help where
bt|backtrace            alias for where - display stack frames

Print the entire stack frame. Each frame is numbered, the most recent
frame is 0. frame number can be referred to in the "frame" command;
"up" and "down" add or subtract respectively to frame numbers shown.
The position of the current frame is marked with -->.

In ruby-debug of yore, where/bt would give me a complete backtrace, all the way up to root, same one that would be displayed from an exception that raised right there.

Improve bin/rdebug - tests and libify

Currently all of the rdebug executable lives in bin/. If we moved most of it into a class i.e. lib/debugger/runner.rb, it would make it much easier to test the executable. Currently this is blocking #20. And of course, there are currently no tests for rdebug.

Add ruby-debug to load path by adding cli to require_paths in gemspec

One of the differences I noticed in debugger is that ruby-debug is not in the load path. Some projects that integrate with ruby-debug expect this file, such as RSpec's --debug flag which requires ruby-debug and then starts the debugger.

The difference is that ruby-debug19 adds s.require_paths = ["cli"] to its gemspec, and cli is where the ruby-debug file lives.

Following is the full ruby-debug19 gemspec after installing the gem on my machine. This is different form the gemspec in the upstream repository, but looks like it comes from the Rakefile.

# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
  s.name = "ruby-debug19"
  s.version = "0.11.6"

  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  s.authors = ["Kent Sibilev", "Mark Moseley"]
  s.date = "2009-09-01"
  s.description = "A generic command line interface for ruby-debug."
  s.email = "[email protected]"
  s.executables = ["rdebug"]
  s.files = ["bin/rdebug"]
  s.homepage = "http://rubyforge.org/projects/ruby-debug19/"
  s.rdoc_options = ["--charset=UTF-8"]
  s.require_paths = ["cli"]
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.2")
  s.rubyforge_project = "ruby-debug19"
  s.rubygems_version = "1.8.15"
  s.summary = "Command line interface (CLI) for ruby-debug-base"

  if s.respond_to? :specification_version then
    s.specification_version = 3

    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
      s.add_runtime_dependency(%q<columnize>, [">= 0.3.1"])
      s.add_runtime_dependency(%q<linecache19>, [">= 0.5.11"])
      s.add_runtime_dependency(%q<ruby-debug-base19>, [">= 0.11.19"])
    else
      s.add_dependency(%q<columnize>, [">= 0.3.1"])
      s.add_dependency(%q<linecache19>, [">= 0.5.11"])
      s.add_dependency(%q<ruby-debug-base19>, [">= 0.11.19"])
    end
  else
    s.add_dependency(%q<columnize>, [">= 0.3.1"])
    s.add_dependency(%q<linecache19>, [">= 0.5.11"])
    s.add_dependency(%q<ruby-debug-base19>, [">= 0.11.19"])
  end
end

Symbol not found: _ruby_current_thread for 1.9.3-p374

What I do:

gem install debugger
# add debugger to development section of gemfile
bundle exec rails server

What I get:

/Users/sheerun/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/bundler/gems/rails-cba8c3657aa0/activesupport/lib/active_support/dependencies.rb:251:in `require': dlopen(/Users/sheerun/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle, 9): Symbol not found: _ruby_current_thread (LoadError)
  Referenced from: /Users/sheerun/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
  Expected in: flat namespace
 in /Users/sheerun/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle - /Users/sheerun/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle

As you can see for some reason debugger uses ruby-debug-base19-0.11.25 headers for ruby 1.9.3-p374, and that's probably the reason it fails.

@edit:

It also doesn't work if I instal debugger using:

gem install debugger -- --with-ruby-include=~/.rbenv/versions/1.9.3-p374/include

or

gem install debugger -- --with-ruby-include=~/.rbenv/versions/1.9.3-p374/include/ruby-1.9.1/ruby-1.9.3-p374

Trying to build ruby_debug.so fails on debugger/ruby_core_source

I'm trying to use this fork to get the Komodo Ruby debugger working with 1.9.3

Trying to run 'ruby extconf.rb' with ruby 1.9.3-p125 gives this error:
/home/ericp/opt/ruby-1.9.3-p125/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- debugger/ruby_core_source (LoadError) from /home/ericp/opt/ruby-1.9.3-p125/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from extconf.rb:16:in `

'

There is no ruby_core_source.rb in the debugger/lib/debugger dir

I made the following changes to extconf.rb:

Index: /home/ericp/lab/rb/ruby-debug--cldwalker/debugger/ext/ruby_debug/extconf.rb
index 7ebeedc..ed53538 100644
--- a/ext/ruby_debug/extconf.rb
+++ b/ext/ruby_debug/extconf.rb
@@ -13,7 +13,14 @@ unless ARGV.any? {|arg| arg.include?('--with-ruby-include') }
end

require "mkmf"
-require "debugger/ruby_core_source"
+begin

  • require "debugger/ruby_core_source"
  • RubyCoreSource = Debugger::RubyCoreSource
    +rescue LoadError
  • require 'rubygems'
  • require 'ruby_core_source'
  • RubyCoreSource = Ruby_core_source
    +end
    require 'fileutils'

if RUBY_VERSION < "1.9"
@@ -58,7 +65,7 @@ current_dir = File.dirname(FILE)
end

dir_config("ruby")
-if !Debugger::RubyCoreSource.create_makefile_with_core(hdrs, "ruby_debug")
+if !RubyCoreSource.create_makefile_with_core(hdrs, "ruby_debug")
STDERR.print("Makefile creation failed\n")
STDERR.print("*************************************************************\n\n")
STDERR.print(" NOTE: If your headers were not found, try passing\n")

, and managed to build a ruby_debug.so with only two warnings::

ruby_debug $ make
compiling ruby_debug.c
ruby_debug.c: In function ‘context_jump’:
ruby_debug.c:2393: warning: comparison between signed and unsigned
ruby_debug.c:2407: warning: comparison between signed and unsigned
compiling breakpoint.c
linking shared-object ruby_debug.so

I'll report back on results of integrating that .so into the Komodo debugger.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.