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

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 8 15:15:44 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}"
----------------
bulbazord wrote:

Does the string literal here need to be an f-string so `message` is properly interpolated?

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


More information about the lldb-commits mailing list