debug
debug copied to clipboard
Debugging functionality for Ruby
Currently, `step back ` doesn't work in replay mode. This PR fixes it.
Currently, `step `doesn't work in replay mode. This PR fixes it.
**Your proposal** Make it possible for the debugger to pause the program until the first client connects: ```ruby require "debug/open_wait_for_client" # Program is now paused until the first debugger client...
Thanks for your Pull Request 🎉 **Please follow these instructions to help us review it more efficiently:** - Add references of related issues/PRs in the description if available. - If...
## Description - By using [rb_profile_frames](https://github.com/ruby/ruby/blob/d6f21b308bcff03e82f8b3dbf11a852ce111b3b3/include/ruby/debug.h#L51) instead of `rb_make_backtrace` in DEBUGGER__.frame_depth, we can improve the performance of frame_depth substantially for common cases. This leads to much faster `next` and `finish`...
## Description ### Background - `next` can be quite slow when stepping over code. It appears this is a known issue due to expensive calls to [DEBUGGER__.frame_depth](https://github.com/ruby/debug/blob/2cb44483c681f6806bf6843a8f996d3a10d0e42c/ext/debug/debug.c#L95) that are made...
As proposed by @ko1 in https://github.com/ruby/debug/pull/750, make `INFO` the default level, so we can move down some messages like: ``` DEBUGGER: BP - Line /.rb: (call) is activated. ``` At...
## Description This is a fix for #741 Basically, allow users to specify the `local_fs_map` even when using `UI_UnixDomainServer`. The idea is to maintain the existing behavior when the configuration...
**Your proposal** Make `fs_map` work with `UnixDomainServer`. Right now, the code disables this feature for `UnixDomainServer`: https://github.com/ruby/debug/blob/master/lib/debug/server_dap.rb#L131 **Additional context** Stripe runs `ruby` on a remote server and VS Code on...
**Your proposal** Is it possible to separate out the logic to attempt to attach to a process, and to define all the classes that the library needs? **Additional context** When...