debug icon indicating copy to clipboard operation
debug copied to clipboard

Debugging functionality for Ruby

Results 131 debug issues
Sort by recently updated
recently updated
newest added

In planning ahead to the near future when TruffleRuby can run C-extensions marked with rb_ext_ractor_safe(true) in parallel, and for when Ractors are no longer just experimental, it would be great...

**Your environment** * `ruby -v`: `ruby 3.1.7p261 (2025-03-26 revision 0a3704f218) [x86_64-linux]` **Describe the bug** I noticed in [this dependabot PR](https://github.com/ruby-i18n/ruby-cldr/pull/326/files), that [CI was failing](https://github.com/ruby-i18n/ruby-cldr/actions/runs/15732390207/job/44336392083?pr=326) to install `debug` in Ruby 3.1....

Any input into `$stdin` before showing prompt will be appear on the next prompt, and entering new empty line will dispatch previous command. This patch consumes empty lines ("\n"+) from...

We noticed a thread deadlock issue with Ruby debug after our net/http version changed from `0.2.0` to `0.3.0`. ![Screenshot 2023-05-03 at 13 13 18](https://user-images.githubusercontent.com/13201458/236007195-52e9a07c-621c-4f3b-a786-44fbfcc4f03d.png) When you are in the breakpoint...

Sorry if this is the wrong place to ask this. I've searched the web, asked AI, asked on a few Ruby forums and searched the issues on this repo. The...

**Your environment** * `ruby -v`: 3.3.5 * `rdbg -v`: 1.9.2 **Describe the bug** When hitting breakpoint via placing "debugger" into source code, and connecting with remote debugger, with sinatra controller...

## Description With this PR, even if you press `Enter` key repeatedly before reaching the breakpoint, `continue` will not be executed automatically. ## Issue When you reach a breakpoint in...

https://github.com/ruby/debug/blob/bead0984d241a91235e3d3bacd247f0363d2d530/lib/debug/breakpoint.rb#L192 The `iseq.absolute_path` seems to always be nil for `.erb` files even though the breakpoint works correctly and stops the execution at the specifiied line in the erb file. Therefore...

**Your environment** * `ruby -v`: 3.3.6 * `rdbg -v`: 1.9.2 * Inside docker (docker image `ruby:3.3.6-slim-bookworm@sha256:7a89be75c6768a888f70c90f4626366de90909c4e4d62729775ea3b64672547c` to be exact) * Process started like: `bundle exec rdbg -O -n --session-name='web' -c...

Apologies if such a feature is already present, I couldn't find it in the project. Could I request an API method to stop the debugger once it's been loaded? I'm...