summaryrefslogtreecommitdiff
path: root/debugger.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-16 01:22:15 -0600
committerJeff Carr <[email protected]>2024-02-16 01:22:15 -0600
commit47fad87e322da702df4993434c73941d826097fe (patch)
tree959bdd97dbe23c6774e029027eeab8bac3284c5e /debugger.go
parentff091d0c81f891f91c0c7b16d7a5872a6d2a474b (diff)
use common debugger codev0.21.0v0.20.8
Diffstat (limited to 'debugger.go')
-rw-r--r--debugger.go26
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()
+ }()
+ }
+}