From 21b87a7bdb31f19812e0f989cc9e0304a9972e32 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Tue, 3 Apr 2018 13:06:39 +0200 Subject: docs: initial manual entry for `lib/debug.nix` It is more of a stub for now, but at least points to the right file. --- doc/functions.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc/functions.xml') diff --git a/doc/functions.xml b/doc/functions.xml index f790512e7db1..b2e450972947 100644 --- a/doc/functions.xml +++ b/doc/functions.xml @@ -294,6 +294,22 @@ merge:"diff3" +
+ Debugging Nix Expressions + + Nix is a unityped, dynamic language, this means every value can + potentially appear anywhere. Since it is also non-strict, evaluation order + and what ultimately is evaluated might surprise you. Therefore it is important + to be able to debug nix expressions. + + + In the lib/debug.nix file you will find a number of + functions that help (pretty-)printing values while evaluation is runnnig. You + can even specify how deep these values should be printed recursively, and + transform them on the fly. Please consult the docstrings in + lib/debug.nix for usage information. +
+
buildFHSUserEnv -- cgit v1.2.3