Skip to content

Commit cdc89ff

Browse files
committed
DOC: debug-builds: small tweaks
1 parent 8dfbe80 commit cdc89ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/how-to-guides/debug-builds.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Using debug builds
99
******************
1010

1111
For development work on native code in your Python package, you may want to use
12-
a debug build. To do so, we need to use the ``buildtype`` option, which is
12+
a debug build. To do so, we need to pass the ``-Dbuildtype=debug`` option, which is
1313
equivalent to ``-Ddebug=true -Doptimization=0``, to ``meson setup``. In addition,
1414
it is likely most useful to set up an editable build with a fixed build
1515
directory. That way, the shared libraries in the installed debug build will
@@ -21,7 +21,9 @@ We can do all that with the following ``pip`` invocation:
2121

2222
.. code-block:: console
2323
24-
$ pip install -e . --no-build-isolation -Csetup-args=-Dbuildtype=debug -Cbuilddir=build-dbg
24+
$ pip install -e . --no-build-isolation \
25+
-Csetup-args=-Dbuildtype=debug \
26+
-Cbuilddir=build-dbg
2527
2628
This debug build of your package will work with either a regular or debug build
2729
of your Python interpreter. A debug Python interpreter isn't necessary, but may

0 commit comments

Comments
 (0)