File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -986,6 +986,9 @@ PyConfig
986
986
Incremented by the :option:`-d` command line option. Set to the
987
987
:envvar:`PYTHONDEBUG` environment variable value.
988
988
989
+ Need a :ref:`debug build of Python <debug-build>` (the ``Py_DEBUG `` macro
990
+ must be defined).
991
+
989
992
Default: ``0``.
990
993
991
994
.. c:member:: int pathconfig_warnings
Original file line number Diff line number Diff line change @@ -248,8 +248,11 @@ Miscellaneous options
248
248
249
249
.. cmdoption :: -d
250
250
251
- Turn on parser debugging output (for expert only, depending on compilation
252
- options). See also :envvar: `PYTHONDEBUG `.
251
+ Turn on parser debugging output (for expert only).
252
+ See also the :envvar: `PYTHONDEBUG ` environment variable.
253
+
254
+ This option requires a :ref: `debug build of Python <debug-build >`, otherwise
255
+ it's ignored.
253
256
254
257
255
258
.. cmdoption :: -E
@@ -660,6 +663,9 @@ conflict.
660
663
:option: `-d ` option. If set to an integer, it is equivalent to specifying
661
664
:option: `-d ` multiple times.
662
665
666
+ This environment variable requires a :ref: `debug build of Python
667
+ <debug-build>`, otherwise it's ignored.
668
+
663
669
664
670
.. envvar :: PYTHONINSPECT
665
671
Original file line number Diff line number Diff line change @@ -278,6 +278,8 @@ Effects of a debug build:
278
278
* Add ``d `` to :data: `sys.abiflags `.
279
279
* Add :func: `sys.gettotalrefcount ` function.
280
280
* Add :option: `-X showrefcount <-X> ` command line option.
281
+ * Add :option: `-d ` command line option and :envvar: `PYTHONDEBUG ` environment
282
+ variable to debug the parser.
281
283
* Add support for the ``__lltrace__ `` variable: enable low-level tracing in the
282
284
bytecode evaluation loop if the variable is defined.
283
285
* Install :ref: `debug hooks on memory allocators <default-memory-allocators >`
You can’t perform that action at this time.
0 commit comments