There was an error while loading. Please reload this page.
1 parent 47f1161 commit 74a9c60Copy full SHA for 74a9c60
2 files changed
Lib/pdb.py
@@ -75,6 +75,7 @@
75
import code
76
import glob
77
import json
78
+import stat
79
import token
80
import types
81
import atexit
@@ -3418,6 +3419,8 @@ def attach(pid, commands=()):
3418
3419
)
3420
3421
connect_script.close()
3422
+ orig_mode = os.stat(connect_script.name).st_mode
3423
+ os.chmod(connect_script.name, orig_mode | stat.S_IROTH | stat.S_IRGRP)
3424
sys.remote_exec(pid, connect_script.name)
3425
3426
# TODO Add a timeout? Or don't bother since the user can ^C?
Misc/NEWS.d/next/Library/2025-05-22-18-14-13.gh-issue-134546.fjLVzK.rst
@@ -0,0 +1 @@
1
+Ensure :mod:`pdb` remote debugging script is readable by remote Python process.
0 commit comments