We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6cb8fb commit 8b3ffa9Copy full SHA for 8b3ffa9
Doc/whatsnew/3.14.rst
@@ -124,7 +124,7 @@ Here's a simple example that inspects object types in a running Python process:
124
# Create a temporary script
125
with tempfile.NamedTemporaryFile(mode='w', suffix='.py', delete=False) as f:
126
script_path = f.name
127
- f.write("import my_debugger; my_debugger.connect(HOST_PROCESS)")
+ f.write(f"import my_debugger; my_debugger.connect({os.getpid()})")
128
try:
129
# Execute in process with PID 1234
130
print("Behold! An offering:")
0 commit comments