@@ -3,8 +3,8 @@ pry-debugger
33
44_ Fast execution control in Pry_
55
6- Adds ** step** , ** next** , and ** continue ** commands and ** breakpoints ** to
7- [ Pry] [ pry ] using [ debugger] [ debugger ] .
6+ Adds ** step** , ** next** , ** finish ** , and ** continue ** commands and
7+ ** breakpoints ** to [ Pry] [ pry ] using [ debugger] [ debugger ] .
88
99To use, invoke pry normally. No need to start your script or app differently.
1010
@@ -15,9 +15,8 @@ def some_method
1515end
1616```
1717
18- To create a fully flexible debugging environment,
19- [ pry-stack_explorer] [ pry-stack_explorer ] is recommended as a companion Pry
20- plugin to add call-stack frame navigation.
18+ For a complete debugging environment, add
19+ [ pry-stack_explorer] [ pry-stack_explorer ] for call-stack frame navigation.
2120
2221
2322## Execution Commands
@@ -28,6 +27,8 @@ argument to step multiple times.
2827** next:** Step over to the next line within the same frame. Also takes an
2928optional numeric argument to step multiple lines.
3029
30+ ** finish:** Execute until current stack frame returns.
31+
3132** continue:** Continue program execution and end the Pry session.
3233
3334
@@ -36,9 +37,9 @@ optional numeric argument to step multiple lines.
3637You can set and adjust breakpoints directly from a Pry session using the
3738following commands:
3839
39- ** break:** Set a new breakpoint. Accepts a line number in the current file, a
40- file and line number, or a method, and an optional condition. By passing various
41- flags, existing breakpoints can be changed .
40+ ** break:** Set a new breakpoint from a line number in the current file, a file
41+ and line number, or a method. Pass an optional expression to create a
42+ conditional breakpoint. Edit existing breakpoints via various flags .
4243
4344Examples:
4445
@@ -118,6 +119,7 @@ Stepping through code often? Add the following shortcuts to `~/.pryrc`:
118119Pry .commands.alias_command ' c' , ' continue'
119120Pry .commands.alias_command ' s' , ' step'
120121Pry .commands.alias_command ' n' , ' next'
122+ Pry .commands.alias_command ' f' , ' finish'
121123```
122124
123125
0 commit comments