Skip to content

Commit

Permalink
More sphinx doc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Jun 3, 2015
1 parent e030c62 commit 46ee1c6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/entry-exit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ There are a couple ways you can enter the debugger:
Invoking the Debugger Initially
===============================

The simplest way to debug your program is to call run ``trepan2``
specifying the name of your program and its options and any debugger
options:
The simplest way to debug your program is to call run `trepan2` (or
`trepan3k` for Python). Give the name of your program and its options
and any debugger options:

.. code:: console
$ cat test.py
print 'Hello, World!'
print('Hello, World!')
$ trepan2 test.py
Expand Down Expand Up @@ -209,12 +209,12 @@ and call the debugger on signal *USR1*:

.. code:: python
import signal
def signal_handler(num, f):
from trepan.api import debug; debug()
return
signal.signal(signal.SIGUSR1, signal_handler)
# Go about your business...
import signal
def signal_handler(num, f):
from trepan.api import debug; debug()
return
signal.signal(signal.SIGUSR1, signal_handler)
# Go about your business...
However, if you have entered the debugger either by running intially or
previously via a debug() call trepan2 has already set up such default
Expand Down

0 comments on commit 46ee1c6

Please sign in to comment.