# Debugging nix build from flake \[solved\]

**URL:** https://discourse.nixos.org/t/debugging-nix-build-from-flake-solved/28330
**Category:** Help
**Created:** [May 20, 2023, 5:42pm UTC](https://discourse.nixos.org/t/debugging-nix-build-from-flake-solved/28330 "2023-05-20T17:42:46Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![abathur](https://discourse.nixos.org/user_avatar/discourse.nixos.org/abathur/32/2719_2.png) [@abathur](https://discourse.nixos.org/u/abathur)
#### Post date: [May 20, 2023, 5:58pm UTC](https://discourse.nixos.org/t/debugging-nix-build-from-flake-solved/28330/2 "2023-05-20T17:58:41Z")

</div>

I haven’t tried it myself, but have you tried the` --debugger` flag?

If that doesn’t work, perhaps some of the recommendations in [Debug a failed derivation with `breakpointHook` and `cntr`](https://discourse.nixos.org/t/debug-a-failed-derivation-with-breakpointhook-and-cntr/8669) will.

---

_[View the full topic](https://discourse.nixos.org/t/debugging-nix-build-from-flake-solved/28330)._
