Skip to content

Commit 91ee34a

Browse files
committed
update document
1 parent 0497585 commit 91ee34a

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

docs/source/tutorial.rst

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ help message
122122
-h, --help show this help message and exit
123123
--print print traceback information
124124
--debug enter pdb debugging interface
125+
--rdebug enter rpdb debugging interface
125126
126127
Print the traceback
127128
###################
@@ -164,4 +165,27 @@ It will open the debugger on port 4444, then we can access pdb using `telnet`_,
164165
.. _netcat: https://netcat.sourceforge.net/
165166

166167

167-
.. image:: _static/rpdb.png
168+
.. image:: _static/rpdb.png
169+
170+
171+
Enable global exception catching
172+
################################
173+
174+
.. code-block:: python
175+
176+
from pydumpling import catch_any_exception
177+
178+
catch_any_exception()
179+
180+
def inner():
181+
a = 1
182+
b = "2"
183+
c = a + b # noqa: F841
184+
185+
186+
def outer():
187+
inner()
188+
189+
if __name__ == "__main__":
190+
outer()
191+

0 commit comments

Comments
 (0)