[Lldb-commits] [lldb] [lldb][docs] Update instructions for debugging API tests (PR #89979)

Chelsea Cassanova via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 24 12:51:33 PDT 2024


https://github.com/chelcassanova created https://github.com/llvm/llvm-project/pull/89979

This adds the option to use the `breakpoint()` keyword as a way to debug the API tests.

>From f1a0a1bc059e133d2e00157ce58b2cbda4904fab Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova <chelsea_cassanova at apple.com>
Date: Wed, 24 Apr 2024 12:48:29 -0700
Subject: [PATCH] [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.
---
 lldb/docs/resources/test.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/docs/resources/test.rst b/lldb/docs/resources/test.rst
index 2b0e9010fe280a..d90d7012f1c860 100644
--- a/lldb/docs/resources/test.rst
+++ b/lldb/docs/resources/test.rst
@@ -602,7 +602,7 @@ will cause the script to print out the pid of the test and wait for a while
 until a debugger is attached. Then run ``lldb -p <pid>`` to attach.
 
 To instead debug a test's python source, edit the test and insert
-``import pdb; pdb.set_trace()`` at the point you want to start debugging. In
+``import pdb; pdb.set_trace()`` or ``breakpoint()`` (Python 3 only) at the point you want to start debugging. In
 addition to pdb's debugging facilities, lldb commands can be executed with the
 help of a pdb alias. For example ``lldb bt`` and ``lldb v some_var``. Add this
 line to your ``~/.pdbrc``:



More information about the lldb-commits mailing list