aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval-settings.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/eval-settings.hh')
-rw-r--r--src/libexpr/eval-settings.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libexpr/eval-settings.hh b/src/libexpr/eval-settings.hh
index 7a92b9728..c78213255 100644
--- a/src/libexpr/eval-settings.hh
+++ b/src/libexpr/eval-settings.hh
@@ -114,6 +114,16 @@ struct EvalSettings : Config
Setting<unsigned int> maxCallDepth{this, 10000, "max-call-depth",
"The maximum function call depth to allow before erroring."};
+
+ Setting<bool> builtinsTraceDebugger{this, false, "debugger-on-trace",
+ R"(
+ If set to true and the `--debugger` flag is given,
+ [`builtins.trace`](@docroot@/language/builtins.md#builtins-trace) will
+ enter the debugger like
+ [`builtins.break`](@docroot@/language/builtins.md#builtins-break).
+
+ This is useful for debugging warnings in third-party Nix code.
+ )"};
};
extern EvalSettings evalSettings;