github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

rocky / rbdbgr

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 21
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (3)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Ruby 1.9 debugger — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

show_subcmd/trace.rb: Add 'show trace'. 
rocky (author)
Tue Feb 09 20:57:08 -0800 2010
commit  050fbf76e8226250b00f5e4e53f4dff1e1e5902d
tree    4d4c055e97e997c4d4f999baba62c536e290e770
parent  ac2fbe1df6aa18158c709ff3c5a5abb2134f9808
rbdbgr /
name age
history
message
file .gitignore Sun Sep 20 19:43:30 -0700 2009 Add custom irb profile for rbdbgr irb sessions.... [rocky]
file ChangeLog Sun Nov 01 18:04:47 -0800 2009 Add task to create ChangeLog. [rocky]
file Makefile Wed Aug 05 04:40:08 -0700 2009 Add autoeval setting and turn prompt into a set... [rocky]
file README Mon Nov 30 02:24:23 -0800 2009 Add 'quit' command. Add finalization routines (... [rocky]
file Rakefile Sun Dec 06 18:29:19 -0800 2009 Move lib/*.rb (minus rbdbgr.rb) to app/ so thes... [rocky]
directory app/ Sun Jan 24 21:22:00 -0800 2010 Track unique breakpoint offset locations for pu... [rocky]
directory bin/ Mon Dec 07 03:07:14 -0800 2009 Save initial current working directory for rest... [rocky]
directory data/ Thu Oct 22 05:01:06 -0700 2009 main: Show <internal:prelude> via LineCache::re... [rocky]
directory interface/ Mon Nov 30 02:24:23 -0800 2009 Add 'quit' command. Add finalization routines (... [rocky]
directory io/ Mon Nov 30 02:24:23 -0800 2009 Add 'quit' command. Add finalization routines (... [rocky]
directory lib/ Mon Dec 07 03:07:14 -0800 2009 Save initial current working directory for rest... [rocky]
directory processor/ Tue Feb 09 20:57:08 -0800 2010 show_subcmd/trace.rb: Add 'show trace'. process... [rocky]
directory profile/ Sat Oct 31 18:38:00 -0700 2009 Go over some stepping oddities and bugs. Add c... [rocky]
directory test/ Tue Feb 09 13:51:26 -0800 2010 First command hook (autoirb) added. [rocky]
README
A modular, testable debugger for Ruby 1.9

Some cryptic examples.

Running if rbdbgr is installed:

  rbdbgr ruby-program [program args]

To call from inside a Ruby program, there is one-time setup that 
needs to be done first:

    require 'rbdbgr'
    mydbg = Debugger.new()

or if you haven't mucked around with $0 and ARGV, you might try:
    mydbg = Debugger.new(:set_restart=>true))

which will tell the debugger how to "restart" the program.

If you want a synchronous stop in your program call to the
debugger at the point of the call, set opts[:immediate]
true. Example:


  #    ... work, work, work
      mydbg.debugger(:immediate=>true)   # enter debugger here
  #    ... work, work, work

However to enter the debugger on the next event after the 
debugger() call:

  #    ... work, work, work
  mydbg.debugger  # Don't stop here...
  work            # but stop here.

And finally, if you want to debug just a block:
  mydbg.debugger {
  #     ... code you want to debug.
  }


Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server