Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf36571 commit d63b6e2Copy full SHA for d63b6e2
1 file changed
library/sys.po
@@ -2058,6 +2058,9 @@ msgid ""
2058
"using :func:`settrace` for each thread being debugged or use "
2059
":func:`threading.settrace`."
2060
msgstr ""
2061
+"设置系统的跟踪函数,使得用户在 Python 中就可以实现 Python "
2062
+"源代码调试器。该函数是特定于单个线程的,所以要让调试器支持多线程,必须为正在调试的每个线程都用 :func:`settrace` "
2063
+"注册一个跟踪函数,或使用 :func:`threading.settrace`。"
2064
2065
#: ../../library/sys.rst:1291
2066
msgid ""
@@ -2066,6 +2069,9 @@ msgid ""
2069
"``'line'``, ``'return'``, ``'exception'`` or ``'opcode'``. *arg* depends on"
2067
2070
" the event type."
2068
2071
2072
+"跟踪函数应接收三个参数:*frame*、*event* 和 *arg*。*frame* 是当前的堆栈帧。*event* "
2073
+"是一个字符串:``'call'``、``'line'``、``'return'``、``'exception'`` 或 "
2074
+"``'opcode'``。*arg* 取决于事件类型。"
2075
2076
#: ../../library/sys.rst:1296
2077
0 commit comments