https://github.com/python/cpython/commit/ae74e3f8636382efdac441c1bc6e69aa66694927 commit: ae74e3f8636382efdac441c1bc6e69aa66694927 branch: main author: changlehung(牧牛的铃铛) <61316604+chang-leh...@users.noreply.github.com> committer: gaogaotiantian <gaogaotiant...@hotmail.com> date: 2025-05-12T15:11:36-04:00 summary:
gh-133926: pass commands via remote_pdb.set_trace instead of using remote_pdb.rcLines.extend (#133933) files: M Lib/pdb.py diff --git a/Lib/pdb.py b/Lib/pdb.py index f89d104fcddb9a..544c701bbd2c72 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=()): _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com