From 562480efeaf4b54073c75afb0b7c05035ec83451 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 14 Jun 2020 17:27:15 -0700 Subject: [PATCH] ;lib: debug doc --- hledger-lib/Hledger/Utils/Debug.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hledger-lib/Hledger/Utils/Debug.hs b/hledger-lib/Hledger/Utils/Debug.hs index 26c69a2b6..debf94cab 100644 --- a/hledger-lib/Hledger/Utils/Debug.hs +++ b/hledger-lib/Hledger/Utils/Debug.hs @@ -22,6 +22,11 @@ Debug level: What to show: 8 input file reading, more detail 9 any other rarely needed / more in-depth info +Tip: when debugging with GHCI, the first run after loading Debug.hs sets the +debug level. If you need to change it, you must touch Debug.hs, :reload in GHCI, +then run the command with a new --debug value. Or, often it's more convenient +to add a temporary dbg0 and :reload (dbg0 always prints). + -} -- more: