aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAlexey Markov <piton4eg@mail.ru>2015-08-21 21:08:50 +0300
committerMarkov Alexey <piton4eg@mail.ru>2015-08-24 08:13:26 +0400
commit0fb2600bbb848005a1572d6fa930cf2e73fa70cd (patch)
tree27f3332d62354f2f3979b0db50bdacafef6b2812 /guides
parent95cb2e3a8a306701d3720fa5e1a9486655aea923 (diff)
downloadrails-0fb2600bbb848005a1572d6fa930cf2e73fa70cd.tar.gz
rails-0fb2600bbb848005a1572d6fa930cf2e73fa70cd.tar.bz2
rails-0fb2600bbb848005a1572d6fa930cf2e73fa70cd.zip
Fix docs for debugging [ci skip]:
* fix command list for thread * add omitted end of code * fix description for `continue` and `finish` command
Diffstat (limited to 'guides')
-rw-r--r--guides/source/debugging_rails_applications.md15
1 files changed, 8 insertions, 7 deletions
diff --git a/guides/source/debugging_rails_applications.md b/guides/source/debugging_rails_applications.md
index c486009741..76fdbb2f72 100644
--- a/guides/source/debugging_rails_applications.md
+++ b/guides/source/debugging_rails_applications.md
@@ -351,6 +351,7 @@ by asking the debugger for help. Type: `help`
help -- prints this help.
help <cmd> -- prints help on command <cmd>.
help <cmd> <subcmd> -- prints help on <cmd>'s subcommand <subcmd>.
+```
To see the previous ten lines you should type `list-` (or `l-`).
@@ -458,12 +459,12 @@ The debugger can list, stop, resume and switch between running threads by using
the `thread` command (or the abbreviated `th`). This command has a handful of
options:
-* `thread` shows the current thread.
-* `thread list` is used to list all threads and their statuses. The plus +
+* `thread`: shows the current thread.
+* `thread list`: is used to list all threads and their statuses. The plus +
character and the number indicates the current thread of execution.
-* `thread stop _n_` stop thread _n_.
-* `thread resume _n_` resumes thread _n_.
-* `thread switch _n_` switches the current thread context to _n_.
+* `thread stop _n_`: stop thread _n_.
+* `thread resume _n_`: resumes thread _n_.
+* `thread switch _n_`: switches the current thread context to _n_.
This command is very helpful when you are debugging concurrent threads and need
to verify that there are no race conditions in your code.
@@ -741,12 +742,12 @@ To list all active catchpoints use `catch`.
There are two ways to resume execution of an application that is stopped in the
debugger:
-* `continue` [line-specification] \(or `c`): resume program execution, at the
+* `continue [line-specification]` \(or `c`): resume program execution, at the
address where your script last stopped; any breakpoints set at that address are
bypassed. The optional argument line-specification allows you to specify a line
number to set a one-time breakpoint which is deleted when that breakpoint is
reached.
-* `finish` [frame-number] \(or `fin`): execute until the selected stack frame
+* `finish [frame-number]` \(or `fin`): execute until the selected stack frame
returns. If no frame number is given, the application will run until the
currently selected frame returns. The currently selected frame starts out the
most-recent frame or 0 if no frame positioning (e.g up, down or frame) has been