Skip to content

Commit d0ed87f

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 d0ed87f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/docs/resources/test.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,8 +602,9 @@ 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
606-
addition to pdb's debugging facilities, lldb commands can be executed with the
605+
``import pdb; pdb.set_trace()`` or ``breakpoint()`` (Python 3 only) at the point you want to start debugging. The ``breakpoint()`` command can be used for any LLDB Python script, not just for API tests.
606+
607+
In addition to pdb's debugging facilities, lldb commands can be executed with the
607608
help of a pdb alias. For example ``lldb bt`` and ``lldb v some_var``. Add this
608609
line to your ``~/.pdbrc``:
609610

0 commit comments

Comments
 (0)