Is there a good way to debug the various phases (install, build, configure, etc.) while running nix build
on a flake? I’ve been able to do things like run ls
in those scripts to give me some information but would be super helpful if I could just initiate an interactive shell at that step - is this possible?
3 Likes
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` will.
1 Like
Thank you Travis - that post is EXACTLY what I’ve been looking for. Incredibly helpful.
1 Like