diff options
| author | Jeff Carr <[email protected]> | 2024-02-12 10:14:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-12 10:14:50 -0600 |
| commit | bc01313a04ddb0cfe5eae72a0e04995765a53c84 (patch) | |
| tree | 3c4b6a8fb779eb2c61c6216137d697ba7ed89705 /debugger.go | |
| parent | 0949113167e0b37a4ba35637c3f6f6a2d0d14e8d (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() + }() + } +} |
