Skip to content

Commit f1a0a1b

Browse files
committed
[lldb][docs] Update instructions for debugging API tests
This adds the option to use the `breakpoint()` keyword as a way to debug the API tests.
1 parent 9c970d5 commit f1a0a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/docs/resources/test.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ will cause the script to print out the pid of the test and wait for a while
602602
until a debugger is attached. Then run ``lldb -p <pid>`` to attach.
603603

604604
To instead debug a test's python source, edit the test and insert
605-
``import pdb; pdb.set_trace()`` at the point you want to start debugging. In
605+
``import pdb; pdb.set_trace()`` or ``breakpoint()`` (Python 3 only) at the point you want to start debugging. In
606606
addition to pdb's debugging facilities, lldb commands can be executed with the
607607
help of a pdb alias. For example ``lldb bt`` and ``lldb v some_var``. Add this
608608
line to your ``~/.pdbrc``:

0 commit comments

Comments
 (0)