# Hyprland debug logs

**URL:** https://discourse.nixos.org/t/hyprland-debug-logs/48108
**Category:** Help
**Created:** [June 29, 2024, 9:53pm UTC](https://discourse.nixos.org/t/hyprland-debug-logs/48108 "2024-06-29T21:53:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jamesla](https://discourse.nixos.org/user_avatar/discourse.nixos.org/jamesla/32/6319_2.png) [@jamesla](https://discourse.nixos.org/u/jamesla)
#### Post date: [June 29, 2024, 9:53pm UTC](https://discourse.nixos.org/t/hyprland-debug-logs/48108/1 "2024-06-29T21:53:09Z")

</div>

I am trying to enable the debug logs for hyprland and I get the follow error telling me they are disabled when I launch hyprland

 ![image](https://discourse.nixos.org/uploads/default/original/3X/0/f/0f0052241c77aacfd52476338d82e822a2a2748f.png)

I am using the following home-manager config to launch hyprland which I think implements how hyprland wants debugging enabled ([Contributing and Debugging – Hyprland Wiki](https://wiki.hyprland.org/Contributing-and-Debugging/#nix))

```nix
wayland.windowManager.hyprland = {
  enable = true;
  package = pkgs.hyprland.override {
    debug = true;
  };
  settings = {
    bind = [
      "$mod, P, exec, dmenu-wl_run -i"
    ]
  };
};

```

This compiles and hyprland works however I still get the error that logs are disabled as per the screenshot above.

How can I enable logging for hyprland when using nixos + homemanager?

---

<div class="post-metadata">

### Author: ![Atemu](https://discourse.nixos.org/user_avatar/discourse.nixos.org/atemu/32/10383_2.png) [@Atemu](https://discourse.nixos.org/u/Atemu)
#### Post date: [June 29, 2024, 10:19pm UTC](https://discourse.nixos.org/t/hyprland-debug-logs/48108/2 "2024-06-29T22:19:13Z")

</div>

The `debug = true;` here is an argument to the Hyprland package that makes it a `Debug` build rather than a `RelWithDebInfo` one. This is intended for interactively debugging it using a debugger program. It has nothing to do with home-manager and does not implement what the log message asks for.

Please follow the link in the log message and set the hyprland config accordingly.

---

<div class="post-metadata">

### Author: ![jamesla](https://discourse.nixos.org/user_avatar/discourse.nixos.org/jamesla/32/6319_2.png) [@jamesla](https://discourse.nixos.org/u/jamesla)
#### Post date: [June 30, 2024, 8:33am UTC](https://discourse.nixos.org/t/hyprland-debug-logs/48108/3 "2024-06-30T08:33:21Z")

</div>

I see thanks @Atemu

Based on the error message I’ve just updated my home.nix to look like this:

```auto
wayland.windowManager.hyprland = {
  enable = true;
  package = pkgs.hyprland;
  settings = {
    bind = [
      "$mod, P, exec, dmenu-wl_run -i"
    ]
    debug = {
      disable_logs = false;
    };
  };
};

```

Yet still am getting the same error when starting hyprland.

---

<div class="post-metadata">

### Author: ![IldenH](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ildenh/32/26777_2.png) [@IldenH](https://discourse.nixos.org/u/IldenH)
#### Post date: [June 30, 2024, 8:47am UTC](https://discourse.nixos.org/t/hyprland-debug-logs/48108/4 "2024-06-30T08:47:34Z")

</div>

Hyprland sends the debug message regardless of what debug.disable\_logs is set to.

> <https://github.com/hyprwm/Hyprland/blob/718afe271ecebfe6711453b9cfee90fa49a7e761/src/config/ConfigManager.cpp#L620>

I don’t see this as an issue, but it could be nice to get confirmation that yes they have actually been enabled.
