]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132950: Log is_remote_debug_enabled() in pythoninfo (#132965)
authorVictor Stinner <vstinner@python.org>
Fri, 25 Apr 2025 18:13:47 +0000 (20:13 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Apr 2025 18:13:47 +0000 (18:13 +0000)
 Log also the Py_REMOTE_DEBUG macro.

Lib/test/pythoninfo.py

index 195551e74228963fa565f06116e878cf76789bb3..682815c3fdd6e0ebda2a5d98b3cf6c7a22788d0c 100644 (file)
@@ -146,6 +146,8 @@ def collect_sys(info_add):
         text = 'No (sys.getobjects() missing)'
     info_add('build.Py_TRACE_REFS', text)
 
+    info_add('sys.is_remote_debug_enabled', sys.is_remote_debug_enabled())
+
 
 def collect_platform(info_add):
     import platform
@@ -528,6 +530,7 @@ def collect_sysconfig(info_add):
         'Py_DEBUG',
         'Py_ENABLE_SHARED',
         'Py_GIL_DISABLED',
+        'Py_REMOTE_DEBUG',
         'SHELL',
         'SOABI',
         'TEST_MODULES',