diff --git a/platformio/commands/debug/helpers.py b/platformio/commands/debug/helpers.py index 9175d070..858be66b 100644 --- a/platformio/commands/debug/helpers.py +++ b/platformio/commands/debug/helpers.py @@ -33,7 +33,7 @@ class GDBBytesIO(BytesIO): # pylint: disable=too-few-public-methods @staticmethod def escape(text): - return re.sub(r"\\+", "\\\\", text) + return re.sub(r"\\+", "\\\\\\\\", text) def write(self, text): if "\n" in text: