While Windows already has a way to enable this, there is currently no clean or supported way to enable Py_STACKREF_DEBUG on Linux and macOS without modifying the codebase directly.
It would be helpful to add a dedicated configuration option for enabling Py_STACKREF_DEBUG on those platforms, and also to add CI coverage for that build configuration. That would make this mode easier to test and help catch related issues earlier.
If I missed an existing way to enable this without modifying the codebase, please let me know.
cc @colesbury @markshannon @Fidget-Spinner
While Windows already has a way to enable this, there is currently no clean or supported way to enable
Py_STACKREF_DEBUGon Linux and macOS without modifying the codebase directly.It would be helpful to add a dedicated configuration option for enabling
Py_STACKREF_DEBUGon those platforms, and also to add CI coverage for that build configuration. That would make this mode easier to test and help catch related issues earlier.If I missed an existing way to enable this without modifying the codebase, please let me know.
cc @colesbury @markshannon @Fidget-Spinner