summaryrefslogtreecommitdiff
path: root/debugger.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-12 21:42:02 -0600
committerJeff Carr <[email protected]>2024-02-12 21:42:02 -0600
commit84c1341b8cd2a23e77251d2dde4ea0bb3b22c0ff (patch)
treecd9658bb2a5b0228ee2886b9e02d2b101972c3bf /debugger.go
parent511ffdcd23cd0fa4aab8353409460ba8a0b0be20 (diff)
use standard debugger.go filev0.20.7v0.20.6v0.20.5v0.20.4
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()
+ }()
+ }
+}