diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -23,8 +23,10 @@ var section1 *choices var section2 *choices func main() { + log.SetAll(true) + log.ShowFlags() myGui = gui.New() - myGui.LoadToolkit("andlabs") + // myGui.LoadToolkit("andlabs") // myGui.LoadToolkit("nocui") myGui.Default() @@ -32,6 +34,14 @@ func main() { helloworld() basicWindow = makebasicWindow() + // run the debugger if triggered from the commandline + if debugger.ArgDebug() { + go func() { + log.Sleep(2) + debugger.DebugWindow() + }() + } + // go will sit here until the window exits gui.Watchdog() } |
