Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae74e3f

Browse files
authored
gh-133926: pass commands via remote_pdb.set_trace instead of using remote_pdb.rcLines.extend (#133933)
1 parent 86c1d43 commit ae74e3f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/pdb.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3383,8 +3383,7 @@ def _connect(
33833383
f"\nLocal pdb module's protocol version: {attach_ver}"
33843384
)
33853385
else:
3386-
remote_pdb.rcLines.extend(commands.splitlines())
3387-
remote_pdb.set_trace(frame=frame)
3386+
remote_pdb.set_trace(frame=frame, commands=commands.splitlines())
33883387

33893388

33903389
def attach(pid, commands=()):

0 commit comments

Comments
 (0)