diff options
author | kcgen <1557255+kcgen@users.noreply.github.com> | 2021-08-26 16:54:31 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2021-08-26 16:54:31 +0300 |
commit | f8fecfda130d3fad50a85c9b8352d04ebaeac7ab (patch) | |
tree | d236edd9da21da86a52877122094305798d395e9 /BUILD.md | |
parent | ff3cf1ac545e7be62878ed64e7d86a9b2dc788c9 (diff) |
Document how to configure debugger builds
Diffstat (limited to 'BUILD.md')
-rw-r--r-- | BUILD.md | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -19,6 +19,41 @@ on any modern system. Documentation for programmers using other systems: [macOS]: docs/build-macos.md [Haiku]: docs/build-haiku.md +## Make a build with the built-in debugger + +On Linux, BSD, macOS, or MSYS2: install the `ncurses` development library +with headers included (as opposed to the bare library), and then: + +``` shell +# setup the default debugger +meson setup -Dbuildtype=release -Denable_debugger=normal build/debugger +# -or- setup the heavy debugger +meson setup -Dbuildtype=release -Denable_debugger=heavy build/debugger +# build +ninja -C build/debugger +``` + +If using Visual Studio, install `libcurses` using vcpkg and change +the `C_DEBUG` and optionally the `C_HEAVY_DEBUG` lines inside +`src/platform/visualc/config.h`. + +Default debugger: + +``` c++ +#define C_DEBUG 1 +#define C_HEAVY_DEBUG 0 +``` + +Heavy debugger: + +``` c++ +#define C_DEBUG 1 +#define C_HEAVY_DEBUG 1 +``` + +Then perform a release build. + + ## Meson build snippets ### Make a debug build |