Incremented by the :option:`-d` command line option. Set to the
:envvar:`PYTHONDEBUG` environment variable value.
+ Need a :ref:`debug build of Python <debug-build>` (the ``Py_DEBUG`` macro
+ must be defined).
+
Default: ``0``.
.. c:member:: int pathconfig_warnings
.. cmdoption:: -d
- Turn on parser debugging output (for expert only, depending on compilation
- options). See also :envvar:`PYTHONDEBUG`.
+ Turn on parser debugging output (for expert only).
+ See also the :envvar:`PYTHONDEBUG` environment variable.
+
+ This option requires a :ref:`debug build of Python <debug-build>`, otherwise
+ it's ignored.
.. cmdoption:: -E
:option:`-d` option. If set to an integer, it is equivalent to specifying
:option:`-d` multiple times.
+ This environment variable requires a :ref:`debug build of Python
+ <debug-build>`, otherwise it's ignored.
+
.. envvar:: PYTHONINSPECT
* Add ``d`` to :data:`sys.abiflags`.
* Add :func:`sys.gettotalrefcount` function.
* Add :option:`-X showrefcount <-X>` command line option.
+* Add :option:`-d` command line option and :envvar:`PYTHONDEBUG` environment
+ variable to debug the parser.
* Add support for the ``__lltrace__`` variable: enable low-level tracing in the
bytecode evaluation loop if the variable is defined.
* Install :ref:`debug hooks on memory allocators <default-memory-allocators>`