Skip to content

Commit b56c211

Browse files
committed
Set DEBUG global from TERMINAL_WIDGETS_DEBUG env var
1 parent 4e17bfc commit b56c211

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Terminal/Widgets/Simple/App.rakumod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ class Terminal::Widgets::Simple::App is Terminal::Widgets::App {
7171
# Make sure we see diagnostics immediately, even if $*ERR is redirected to a file
7272
$*ERR.out-buffer = False;
7373

74+
# Turn on debugging if requested in environment
75+
$PROCESS::DEBUG //= +(%*ENV<TERMINAL_WIDGETS_DEBUG> // 0);
76+
7477
# Provide hook for subclasses to perform boot-time initialization
7578
self.boot-init(|c);
7679

0 commit comments

Comments
 (0)