aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorJon Atack <jonnyatack@gmail.com>2015-08-15 23:59:01 +0200
committerJon Atack <jonnyatack@gmail.com>2015-08-22 10:55:59 +0200
commit94a0c1c584622d7227f514d64aaf961cefd22990 (patch)
tree51ff7a13bbac39cfb24ccdbd2580e120578c632b /guides
parent15f3cc8119c03ad522783a3fbee4aa4acbb45484 (diff)
downloadrails-94a0c1c584622d7227f514d64aaf961cefd22990.tar.gz
rails-94a0c1c584622d7227f514d64aaf961cefd22990.tar.bz2
rails-94a0c1c584622d7227f514d64aaf961cefd22990.zip
[skip ci] Debugging Rails Guide fixes
- Fixes: "we want go deep" -> "we won't go deep" "to next next line" -> "to the next line" - Minor improvements in clarity and grammar. Cheers :)
Diffstat (limited to 'guides')
-rw-r--r--guides/source/debugging_rails_applications.md16
1 files changed, 9 insertions, 7 deletions
diff --git a/guides/source/debugging_rails_applications.md b/guides/source/debugging_rails_applications.md
index c486009741..40d5bd2012 100644
--- a/guides/source/debugging_rails_applications.md
+++ b/guides/source/debugging_rails_applications.md
@@ -619,13 +619,15 @@ Processing by ArticlesController#index as HTML
(byebug)
```
-If we use `next`, we want go deep inside method calls. Instead, byebug will go
-to the next line within the same context. In this case, this is the last line of
-the method, so `byebug` will jump to next next line of the previous frame.
-
+If we use `next`, we won't go deep inside method calls. Instead, `byebug` will
+go to the next line within the same context. In this case, it is the last line
+of the current method, so `byebug` will return to the next line of the caller
++method.
```
(byebug) next
-Next went up a frame because previous frame finished
+
+Next advances to the next line (line 6: `end`), which returns to the next line
+of the caller method:
[4, 13] in /PathTo/project/test_app/app/controllers/articles_controller.rb
4: # GET /articles
@@ -642,8 +644,8 @@ Next went up a frame because previous frame finished
(byebug)
```
-If we use `step` in the same situation, we will literally go to the next Ruby
-instruction to be executed. In this case, Active Support's `week` method.
+If we use `step` in the same situation, `byebug` will literally go to the next
+Ruby instruction to be executed -- in this case, Active Support's `week` method.
```
(byebug) step