Skip to content

Commit 1b54805

Browse files
[lldb][docs] Update instructions for debugging API tests (#89979)
1 parent 9191878 commit 1b54805

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
@@ -618,9 +618,9 @@ On non-Windows platforms, you can use the ``-d`` option to ``dotest.py`` which
618618
will cause the script to print out the pid of the test and wait for a while
619619
until a debugger is attached. Then run ``lldb -p <pid>`` to attach.
620620

621-
To instead debug a test's python source, edit the test and insert
622-
``import pdb; pdb.set_trace()`` at the point you want to start debugging. In
623-
addition to pdb's debugging facilities, lldb commands can be executed with the
621+
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.
622+
623+
In addition to pdb's debugging facilities, lldb commands can be executed with the
624624
help of a pdb alias. For example ``lldb bt`` and ``lldb v some_var``. Add this
625625
line to your ``~/.pdbrc``:
626626

0 commit comments

Comments
 (0)