diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 10:00:54 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 10:00:54 +0000 |
commit | 3cccd102ba543e02725d247893729e5c73b38295 (patch) | |
tree | f36a04ec38517f5deaaacb5acc7d949688d1e187 /doc/development/pry_debugging.md | |
parent | 205943281328046ef7b4528031b90fbda70c75ac (diff) | |
download | gitlab-ce-3cccd102ba543e02725d247893729e5c73b38295.tar.gz |
Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42
Diffstat (limited to 'doc/development/pry_debugging.md')
-rw-r--r-- | doc/development/pry_debugging.md | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/development/pry_debugging.md b/doc/development/pry_debugging.md index 5481da348e8..6751559b2ef 100644 --- a/doc/development/pry_debugging.md +++ b/doc/development/pry_debugging.md @@ -17,7 +17,11 @@ You can then connect to this session by using the [pry-shell](https://github.com You can watch [this video](https://www.youtube.com/watch?v=Lzs_PL_BySo), for more information about how to use the `pry-shell`. -## `byebug` vs `binding.pry` +WARNING: +`binding.pry` can occasionally experience autoloading issues and fail during name resolution. +If needed, `binding.irb` can be used instead with a more limited feature set. + +## `byebug` vs `binding.pry` vs `binding.irb` `byebug` has a very similar interface as `gdb`, but `byebug` does not use the powerful Pry REPL. @@ -41,6 +45,12 @@ this document, so for the full documentation head over to the [Pry wiki](https:/ Below are a few features definitely worth checking out, also run `help` in a pry session to see what else you can do. +## `binding.irb` + +As of Ruby 2.7, IRB ships with a simple interactive debugger. + +Check out [the docs](https://ruby-doc.org/stdlib-2.7.0/libdoc/irb/rdoc/Binding.html) for more. + ### State navigation With the [state navigation](https://github.com/pry/pry/wiki/State-navigation) |