Skip to content

Commit 8b3ffa9

Browse files
pablogsalzooba
andauthored
Update Doc/whatsnew/3.14.rst
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
1 parent e6cb8fb commit 8b3ffa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Here's a simple example that inspects object types in a running Python process:
124124
# Create a temporary script
125125
with tempfile.NamedTemporaryFile(mode='w', suffix='.py', delete=False) as f:
126126
script_path = f.name
127-
f.write("import my_debugger; my_debugger.connect(HOST_PROCESS)")
127+
f.write(f"import my_debugger; my_debugger.connect({os.getpid()})")
128128
try:
129129
# Execute in process with PID 1234
130130
print("Behold! An offering:")

0 commit comments

Comments
 (0)