summaryrefslogtreecommitdiff
path: root/debugger.go
blob: 116d5493e03156b9aae56243e11328f9637e76e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main

/*
	enables GUI options and the debugger in your application
*/

import (
	"go.wit.com/dev/alexflint/arg"
	"go.wit.com/lib/debugger"
	"go.wit.com/log"
)

var args struct {
}

func init() {
	arg.MustParse(&args)

	if debugger.ArgDebug() {
		log.Info("cmd line --debugger == true")
		go func() {
			log.Sleep(2)
			debugger.DebugWindow()
		}()
	}
}