Skip to content
Closed
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
9 changes: 9 additions & 0 deletions docs/how-to-guides/debug-builds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ We can do all that with the following ``pip`` invocation:
-Csetup-args=-Dbuildtype=debug \
-Cbuild-dir=build-dbg

If you use a Meson native file to group build settings, keep
``-Csetup-args=-Dbuildtype=debug`` on the build frontend command line.
A ``buildtype = 'debug'`` entry under ``[built-in options]`` in the
native file is overridden by the ``-Dbuildtype=release`` argument
that :ref:`meson-python supplies by default <explanations-default-options>`.
Meson gives ``-D`` arguments precedence over machine file options.
The explicit ``-Dbuildtype=debug`` in the command above is passed after
that default.

This debug build of your package will work with either a regular or debug build
of your Python interpreter. A debug Python interpreter isn't necessary, but may
be useful. It can be built from source, or you may be able to get it from your
Expand Down