Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fa0a0b0c
Commit
fa0a0b0c
authored
Apr 05, 2022
by
Lucas Charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Add debugging docs on usage of binding.irb
parent
3e1c7d99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
doc/development/pry_debugging.md
doc/development/pry_debugging.md
+11
-1
No files found.
doc/development/pry_debugging.md
View file @
fa0a0b0c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment