You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lldb/docs/resources/test.rst
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -602,8 +602,9 @@ will cause the script to print out the pid of the test and wait for a while
602
602
until a debugger is attached. Then run ``lldb -p <pid>`` to attach.
603
603
604
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
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
607
608
help of a pdb alias. For example ``lldb bt`` and ``lldb v some_var``. Add this
0 commit comments