Skip to content

Commit 9a7d442

Browse files
Merge pull request rails#45391 from siaw23/debugging_errata
Fix minor errata on debugging section [ci-skip]
2 parents 0a48f49 + d578002 commit 9a7d442

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

guides/source/debugging_rails_applications.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -436,13 +436,12 @@ It's also possible to use these options together: `backtrace [num] /pattern/`.
436436

437437
#### The outline command
438438

439-
This command is similar to `pry` and `irb`'s `ls` command. It will show you what's accessible from you current scope, including:
439+
This command is similar to `pry` and `irb`'s `ls` command. It will show you what's accessible from the current scope, including:
440440

441441
- Local variables
442442
- Instance variables
443443
- Class variables
444444
- Methods & their sources
445-
- ...etc.
446445

447446
```rb
448447
ActiveSupport::Configurable#methods: config
@@ -472,7 +471,7 @@ class variables: @@raise_on_missing_translations @@raise_on_open_redirects
472471

473472
### Breakpoints
474473

475-
There are many ways to insert and trigger a breakpoint in the debugger. In additional to adding debugging statements (e.g. `debugger`) directly in your code, you can also insert breakpoints with commands:
474+
There are many ways to insert and trigger a breakpoint in the debugger. In addition to adding debugging statements (e.g. `debugger`) directly in your code, you can also insert breakpoints with commands:
476475

477476
- `break` (or `b`)
478477
- `break` - list all breakpoints
@@ -491,7 +490,7 @@ And to remove them, you can use:
491490

492491
#### The break command
493492

494-
**Set a breakpoint with specified line number - e.g. `b 28`**
493+
**Set a breakpoint on a specified line number - e.g. `b 28`**
495494

496495
```rb
497496
[20, 29] in ~/projects/rails-guide-example/app/controllers/posts_controller.rb
@@ -787,9 +786,7 @@ See [ruby/debug#408](https://github.com/ruby/debug/issues/408) for details.
787786
Debugging with the `web-console` gem
788787
------------------------------------
789788

790-
Web Console is a bit like `debug`, but it runs in the browser. In any page you
791-
are developing, you can request a console in the context of a view or a
792-
controller. The console would be rendered next to your HTML content.
789+
Web Console is a bit like `debug`, but it runs in the browser. You can request a console in the context of a view or a controller on any page. The console would be rendered next to your HTML content.
793790

794791
### Console
795792

0 commit comments

Comments
 (0)