8000 gh-93103: Enhance PyConfig.parser_debug documentation by vstinner · Pull Request #93186 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8000

gh-93103: Enhance PyConfig.parser_debug documentation #93186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Doc/c-api/init_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,9 @@ PyConfig
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
Expand Down
10 changes: 8 additions & 2 deletions Doc/using/cmdline.rst
8000
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,11 @@ Miscellaneous options

.. 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
Expand Down Expand Up @@ -660,6 +663,9 @@ conflict.
: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

Expand Down
2 changes: 2 additions & 0 deletions Doc/using/configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ Effects of a debug build:
* 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>`
Expand Down
0