From 87e2118eebb526c85c688d315476d883afaee403 Mon Sep 17 00:00:00 2001 From: Justin Flannery Date: Sun, 3 Mar 2024 14:17:40 -0700 Subject: [PATCH] hatch debug tracebacks (#1229) Co-authored-by: Ofek Lev --- src/hatch/cli/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hatch/cli/__init__.py b/src/hatch/cli/__init__.py index ce02f3fbf..68b8ee2d5 100644 --- a/src/hatch/cli/__init__.py +++ b/src/hatch/cli/__init__.py @@ -221,5 +221,6 @@ def main(): # no cov from rich.console import Console console = Console() - console.print_exception(suppress=[click]) + hatch_debug = os.getenv('HATCH_DEBUG') in {'1', 'true'} + console.print_exception(suppress=[click], show_locals=hatch_debug) return 1