[Lldb-commits] [lldb] Improve VSCode DAP logpoint value summary (PR #71723)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 8 15:08:39 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r 5aa934e2af8727852dec0ec1cfa0cba05d858f70..9664c6f13accbab2616e891ac031701566fd58b4 lldb/test/API/tools/lldb-dap/breakpoint/TestDAP_logpoints.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestDAP_logpoints.py 2023-11-08 22:54:45.000000 +0000
+++ TestDAP_logpoints.py 2023-11-08 23:08:31.300707 +0000
@@ -46,11 +46,11 @@
# Set two breakpoints:
# 1. First at the loop line with logMessage
# 2. Second guard breakpoint at a line after loop
logMessage_prefix = "This is log message for { -- "
- message_addr_pattern = r'\b0x[0-9A-Fa-f]+\b'
+ message_addr_pattern = r"\b0x[0-9A-Fa-f]+\b"
message = '"Hello from main!"'
logMessage = logMessage_prefix + "{i + 3}, {message}"
[loop_breakpoint_id, post_loop_breakpoint_id] = self.set_source_breakpoints(
self.main_path,
[loop_line, after_loop_line],
``````````
</details>
https://github.com/llvm/llvm-project/pull/71723
More information about the lldb-commits
mailing list