diff options
| author | Jeff Carr <[email protected]> | 2024-02-12 10:04:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-12 10:04:36 -0600 |
| commit | 9f35ee8d3c8d1b37244927585f363ee84167a441 (patch) | |
| tree | b61ad27fb3b61106edb5a643f3c5a43afba4e172 /debugger.go | |
| parent | 52f207a1055c46526f597316b04aad714625d859 (diff) | |
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debugger.go')
| -rw-r--r-- | debugger.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debugger.go b/debugger.go new file mode 100644 index 0000000..116d549 --- /dev/null +++ b/debugger.go @@ -0,0 +1,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() + }() + } +} |
