From 207c85a3fee0ecf361970b86a99e9feb9b5d4b8b Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Mon, 4 Sep 2023 22:30:00 +0300 Subject: [PATCH] Debugging: add Meson & Nix instructions --- pages/Contributing and Debugging/_index.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pages/Contributing and Debugging/_index.md b/pages/Contributing and Debugging/_index.md index e2ea3f17..17a91296 100644 --- a/pages/Contributing and Debugging/_index.md +++ b/pages/Contributing and Debugging/_index.md @@ -48,6 +48,25 @@ meaning you'll be unable to build any other wlroots compositor without a wlroots reinstall. {{< /hint >}} +### Meson + +```console +meson setup build -Dbuildtype=debug +ninja -C build +``` + +### Nix + +To build the package in debug mode, you have to override it like this: + +```nix +hyprland.override { + debug = true; +}; +``` + +This code can go in the `package` attribute of the NixOS/Home Manager modules. + ## Running when running Hyprland in Debug mode, the config is