From c0d2c38d78fc3b55b7f0a2470ca89bed43eb4019 Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Tue, 5 Oct 2010 23:51:34 +0100 Subject: git-gui: enable the Tk console when tracing/debugging on Windows Without any standard channels the trace option is pretty useless on Win32 unless you can show the Tk console which captures such output. This also permits introspection of the running application to assist in debugging. Signed-off-by: Pat Thoyts --- git-gui.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-gui.sh b/git-gui.sh index ed0904d993..ea262a2bac 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -83,6 +83,7 @@ if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} { puts stderr "source $name" uplevel 1 real__source $name } + if {[tk windowingsystem] eq "win32"} { console show } } ###################################################################### @@ -675,6 +676,7 @@ bind . { if {[is_Windows]} { wm iconbitmap . -default $oguilib/git-gui.ico set ::tk::AlwaysShowSelection 1 + bind . {console show} # Spoof an X11 display for SSH if {![info exists env(DISPLAY)]} { -- cgit v1.2.3