From ae74e3f8636382efdac441c1bc6e69aa66694927 Mon Sep 17 00:00:00 2001 From: =?utf8?q?changlehung=28=E7=89=A7=E7=89=9B=E7=9A=84=E9=93=83=E9=93=9B?= =?utf8?q?=29?= <61316604+Chang-LeHung@users.noreply.github.com> Date: Tue, 13 May 2025 03:11:36 +0800 Subject: [PATCH] gh-133926: pass commands via remote_pdb.set_trace instead of using remote_pdb.rcLines.extend (#133933) --- Lib/pdb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/pdb.py b/Lib/pdb.py index f89d104fcddb..544c701bbd2c 100644 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -3383,8 +3383,7 @@ def _connect( f"\nLocal pdb module's protocol version: {attach_ver}" ) else: - remote_pdb.rcLines.extend(commands.splitlines()) - remote_pdb.set_trace(frame=frame) + remote_pdb.set_trace(frame=frame, commands=commands.splitlines()) def attach(pid, commands=()): -- 2.47.3