https://github.com/banister/debug_inspector
A Ruby wrapper for the MRI 2.0 debug_inspector API
https://github.com/banister/debug_inspector
Keywords from Contributors
activerecord debugger repl rack activejob mvc rubygems multithreading ruby-gem bigdecimal
Last synced: about 2 hours ago
JSON representation
Repository metadata
A Ruby wrapper for the MRI 2.0 debug_inspector API
- Host: GitHub
- URL: https://github.com/banister/debug_inspector
- Owner: banister
- License: mit
- Created: 2013-02-08T19:13:23.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2025-07-17T12:32:59.000Z (8 months ago)
- Last Synced: 2026-02-27T21:35:56.680Z (4 days ago)
- Language: Ruby
- Size: 67.4 KB
- Stars: 58
- Watchers: 9
- Forks: 16
- Open Issues: 3
- Releases: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
debug_inspector
A Ruby wrapper for the Ruby 2.0+ debug_inspector C API
The debug_inspector C extension and API were designed and built by Koichi Sasada, this project
is just a gemification of his work.
NOTES:
- Do not use this library outside of debugging situations.
- This library makes use of the debug inspector API which was new in CRuby 2.0.0.
- Only works on CRuby 2+ and TruffleRuby. Requiring it on unsupported Rubies will result in a no-op.
Usage
require 'debug_inspector'
# Open debug context
# Passed `dc' is only active in a block
DebugInspector.open { |dc|
# backtrace locations (returns an array of Thread::Backtrace::Location objects)
locs = dc.backtrace_locations
# you can get depth of stack frame with `locs.size'
locs.size.times do |i|
# binding of i-th caller frame (returns a Binding object or nil)
p dc.frame_binding(i)
# iseq of i-th caller frame (returns a RubyVM::InstructionSequence object or nil)
p dc.frame_iseq(i)
# class of i-th caller frame
p dc.frame_class(i)
end
}
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install.
To release a new version, update the version number in version.rb and in debug_inspector.gemspec, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contact
Problems or questions contact me at github
License
The debug_inspector is released under the MIT License.
Owner metadata
- Name: John Mair
- Login: banister
- Email:
- Kind: user
- Description: I created Pry, binding_of_caller, method_source, debug_inspector, and so on
- Website: http://twitter.com/banisterfiend
- Location: The Hague, Netherlands
- Twitter:
- Company: Secret
- Icon url: https://avatars.githubusercontent.com/u/17518?u=67690ef926a5f4bee3fcc01091b6b2ece18fe9ee&v=4
- Repositories: 76
- Last ynced at: 2023-04-09T03:40:22.037Z
- Profile URL: https://github.com/banister
GitHub Events
Total
- Issues event: 1
- Watch event: 1
- Issue comment event: 4
- Fork event: 1
Last Year
- Issues event: 1
- Issue comment event: 4
- Fork event: 1
Committers metadata
Last synced: 1 day ago
Total Commits: 64
Total Committers: 9
Avg Commits per committer: 7.111
Development Distribution Score (DDS): 0.484
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Robin Daugherty | r****n@r****t | 33 |
| John Mair | j****r@g****m | 10 |
| Benoit Daloze | e****p@g****m | 6 |
| Jun Aruga | j****a@r****m | 5 |
| ko1 | k****1@a****t | 4 |
| r-obert | r****t | 3 |
| hisaichi5518 | h****8@g****m | 1 |
| Kerri Miller | k****r@k****m | 1 |
| Chris Marshall | c****s@c****m | 1 |
Committer domains:
- chrismar035.com: 1
- kerrizor.com: 1
- atdot.net: 1
- redhat.com: 1
- robindaugherty.net: 1
Issue and Pull Request metadata
Last synced: about 14 hours ago
Total issues: 14
Total pull requests: 28
Average time to close issues: about 2 years
Average time to close pull requests: about 1 month
Total issue authors: 11
Total pull request authors: 10
Average comments per issue: 2.5
Average comments per pull request: 1.82
Merged pull request: 24
Bot issues: 0
Bot pull requests: 0
Past year issues: 1
Past year pull requests: 1
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 1
Past year pull request authors: 1
Past year average comments per issue: 2.0
Past year average comments per pull request: 1.0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- junaruga (3)
- eregon (2)
- Integralist (1)
- zw963 (1)
- walski (1)
- ghost (1)
- loqs (1)
- ygpark2 (1)
- strzibny (1)
- shreeve (1)
- 0x1eef (1)
Top Pull Request Authors
- RobinDaugherty (8)
- junaruga (5)
- 0x1eef (4)
- eregon (3)
- ko1 (3)
- codegoalie (1)
- claui (1)
- simi (1)
- kerrizor (1)
- hisaichi5518 (1)
Top Issue Labels
- enhancement (1)
Top Pull Request Labels
Package metadata
- Total packages: 14
-
Total downloads:
- rubygems: 375,347,171 total
- Total docker downloads: 1,284,748,906
- Total dependent packages: 14 (may contain duplicates)
- Total dependent repositories: 188,756 (may contain duplicates)
- Total versions: 31
- Total maintainers: 3
gem.coop: debug_inspector
Adds methods to DebugInspector to allow for inspection of backtrace frames. The debug_inspector C extension and API were designed and built by Koichi Sasada, this project is just a gemification of his work. This library makes use of the debug inspector API which was added to MRI 2.0.0. Only works on MRI 2 and 3. Requiring it on unsupported Rubies will result in a no-op. Recommended for use only in debugging situations. Do not use this in production apps.
- Homepage: https://github.com/banister/debug_inspector
- Documentation: http://www.rubydoc.info/gems/debug_inspector/
- Licenses: MIT
- Latest release: 1.2.0 (published about 2 years ago)
- Last Synced: 2026-03-03T08:22:45.814Z (about 14 hours ago)
- Versions: 7
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 187,756,756 Total
- Docker Downloads: 642,374,453
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.069%
- Downloads: 0.135%
- Docker downloads count: 0.141%
- Maintainers (3)
ubuntu-22.04: ruby-debug-inspector
- Homepage: https://github.com/banister/debug_inspector
- Licenses: mit
- Latest release: 1.1.0+gh-1build1 (published 18 days ago)
- Last Synced: 2026-02-13T13:15:08.652Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.809%
- Forks count: 1.604%
- Stargazers count: 1.63%
rubygems.org: debug_inspector
Adds methods to DebugInspector to allow for inspection of backtrace frames. The debug_inspector C extension and API were designed and built by Koichi Sasada, this project is just a gemification of his work. This library makes use of the debug inspector API which was added to MRI 2.0.0. Only works on MRI 2 and 3. Requiring it on unsupported Rubies will result in a no-op. Recommended for use only in debugging situations. Do not use this in production apps.
- Homepage: https://github.com/banister/debug_inspector
- Documentation: http://www.rubydoc.info/gems/debug_inspector/
- Licenses: MIT
- Latest release: 1.2.0 (published about 2 years ago)
- Last Synced: 2026-03-01T20:01:57.241Z (2 days ago)
- Versions: 7
- Dependent Packages: 14
- Dependent Repositories: 188,756
- Downloads: 187,590,415 Total
- Docker Downloads: 642,374,453
-
Rankings:
- Dependent repos count: 0.096%
- Downloads: 0.141%
- Docker downloads count: 0.199%
- Dependent packages count: 1.364%
- Average: 2.577%
- Forks count: 6.595%
- Stargazers count: 7.068%
- Maintainers (3)
proxy.golang.org: github.com/banister/debug_inspector
- Homepage:
- Documentation: https://pkg.go.dev/github.com/banister/debug_inspector#section-documentation
- Licenses: mit
- Latest release: v1.2.0 (published about 2 years ago)
- Last Synced: 2026-03-03T08:22:46.934Z (about 14 hours ago)
- Versions: 6
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 5.171%
- Stargazers count: 5.469%
- Average: 7.754%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
ubuntu-23.10: ruby-debug-inspector
- Homepage: https://github.com/banister/debug_inspector
- Licenses:
- Latest release: 1.1.0+gh-1build3 (published 18 days ago)
- Last Synced: 2026-02-13T18:17:53.924Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.04: ruby-debug-inspector
- Homepage: https://github.com/banister/debug_inspector
- Licenses:
- Latest release: 1.1.0+gh-1build3 (published 21 days ago)
- Last Synced: 2026-02-11T06:37:52.125Z (21 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-20.04: ruby-debug-inspector
- Homepage: https://github.com/banister/debug_inspector
- Licenses:
- Latest release: 0.0.2-1.1build6 (published 19 days ago)
- Last Synced: 2026-02-13T07:12:20.267Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-11: ruby-debug-inspector
- Homepage: https://github.com/banister/debug_inspector
- Documentation: https://packages.debian.org/bullseye/ruby-debug-inspector
- Licenses:
- Latest release: 0.0.2-1.1 (published 21 days ago)
- Last Synced: 2026-02-13T08:19:21.089Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-10: ruby-debug-inspector
- Homepage: https://github.com/banister/debug_inspector
- Documentation: https://packages.debian.org/buster/ruby-debug-inspector
- Licenses:
- Latest release: 0.0.2-1.1 (published 20 days ago)
- Last Synced: 2026-02-13T04:20:35.689Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
guix: ruby-debug-inspector
Ruby wrapper for the MRI 2.0 debug_inspector API
- Homepage: https://github.com/banister/debug_inspector
- Documentation: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/rails.scm#n221
- Licenses: expat
- Latest release: 1.1.0 (published 1 day ago)
- Last Synced: 2026-03-02T19:03:32.250Z (1 day ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-debug-inspector
- Homepage: https://github.com/banister/debug_inspector
- Documentation: https://packages.debian.org/bookworm/ruby-debug-inspector
- Licenses:
- Latest release: 1.1.0+gh-1 (published 19 days ago)
- Last Synced: 2026-02-12T23:28:01.643Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-13: ruby-debug-inspector
- Homepage: https://github.com/banister/debug_inspector
- Documentation: https://packages.debian.org/trixie/ruby-debug-inspector
- Licenses:
- Latest release: 1.1.0+gh-2 (published 19 days ago)
- Last Synced: 2026-02-13T13:14:34.850Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- minitest >= 0
- rake >= 0
- rake-compiler >= 0
- actions/checkout v2 composite
- ruby/setup-ruby v1 composite
Score: 27.538354079250407