Skip to content

Commit

Permalink
More doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Jun 6, 2015
1 parent 53abe84 commit 82f0f3f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
12 changes: 8 additions & 4 deletions docs/commands/set/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ Set Events
----------
**set events** [*event* ...]

Sets the events that the debugger will stop on. `all` can be used as
an abbreviation for listing all event names.
Sets the events that the debugger will stop on. Event names are:
`c_call`, `c_exception`, `c_return`, `call`, `exception`, `line`,
or `return`.

`all` can be used as an abbreviation for listing all event names.

Changing trace event filters works independently of turning on or off
tracing-event printing.

Examples:
+++++++++

::

set events line # Set trace filter for line events only.
set events call return # Trace calls and returns only
set events all # Set trace filter to all events.

See also:
+++++++++

`set trace`, `show trace`, and `show events`. `help step` lists event names.

`set trace`, `show trace`, and `show events`
9 changes: 7 additions & 2 deletions trepan/processor/command/set_subcmd/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,20 @@ class SetEvents(Mbase_subcmd.DebuggerSubcommand):

"""**set events** [*event* ...]
Sets the events that the debugger will stop on. `all` can be used as
an abbreviation for listing all event names.
Sets the events that the debugger will stop on. Event names are:
`c_call`, `c_exception`, `c_return`, `call`, `exception`, `line`,
or `return`.
`all` can be used as an abbreviation for listing all event names.
Changing trace event filters works independently of turning on or off
tracing-event printing.
Examples:
---------
::
set events line # Set trace filter for line events only.
set events call return # Trace calls and returns only
set events all # Set trace filter to all events.
Expand Down

0 comments on commit 82f0f3f

Please sign in to comment.