summaryrefslogtreecommitdiff
path: root/debugger.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-09 07:07:41 -0500
committerJeff Carr <[email protected]>2025-03-09 07:07:41 -0500
commit66000419bf15cb255e436db44a2a74bf104484e3 (patch)
tree819327cff4db2f2e0e78e6f0caa575ea8e54968d /debugger.go
parenteaedaded622316d3b59c2f3765cd2362e96ce54c (diff)
preliminary gui
Diffstat (limited to 'debugger.go')
-rw-r--r--debugger.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/debugger.go b/debugger.go
new file mode 100644
index 0000000..f7a6aca
--- /dev/null
+++ b/debugger.go
@@ -0,0 +1,20 @@
+package main
+
+/*
+ enables GUI options and the debugger in your application
+*/
+
+import (
+ "go.wit.com/lib/debugger"
+ "go.wit.com/log"
+)
+
+func init() {
+ if debugger.ArgDebug() {
+ log.Info("cmd line --debugger == true")
+ go func() {
+ log.Sleep(2)
+ debugger.DebugWindow()
+ }()
+ }
+}