new option: debugger-on-warn

Co-authored-by: Emilia Bopp <contact@ebopp.de>

Change-Id: I5e20304538dd3e27fb36c32c0a6133cd6a6a6964
This commit is contained in:
Qyriad
2025-11-22 16:48:53 +01:00
parent 94ca4fd7b4
commit 2d85d4c7b6
7 changed files with 37 additions and 0 deletions
@@ -0,0 +1,12 @@
@args --debugger --option debugger-on-warn true
Enter debugger with debugger-on-warn set.
nix-repl> let inspect = v: builtins.warn "inspect is deprecated" (throw "this happens after"); in inspect { }
warning: inspect is deprecated!
warning: builtins.warn reached!
nix-repl> :c
{ }
error: this happens after