[Lldb-commits] [lldb] Improve VSCode DAP logpoint value summary (PR #71723)

via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 8 15:29:23 PST 2023


================
@@ -48,7 +48,9 @@ def test_logmessage_basic(self):
         # 1. First at the loop line with logMessage
         # 2. Second guard breakpoint at a line after loop
         logMessage_prefix = "This is log message for { -- "
-        logMessage = logMessage_prefix + "{i + 3}"
+        message_addr_pattern = r"\b0x[0-9A-Fa-f]+\b"
+        message = '"Hello from main!"'
+        logMessage = logMessage_prefix + "{i + 3}, {message}"
----------------
jeffreytan81 wrote:

`{message}` is DAP's log message format not python f-string. Changed the test order and variable name to less confusing.

https://github.com/llvm/llvm-project/pull/71723


More information about the lldb-commits mailing list