Skip to content

Commit 2328e73

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 2328e73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/docs/resources/test.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,9 @@ On non-Windows platforms, you can use the ``-d`` option to ``dotest.py`` which
601601
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

604-
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
604+
To instead debug a test's python source, edit the test and insert ``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.
605+
606+
In 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``:
609609

0 commit comments

Comments
 (0)