stubbed in tables

This commit is contained in:
Jeff Carr 2025-02-13 20:10:45 -06:00
parent ce18af897a
commit 88f6e8519b
3 changed files with 28 additions and 2 deletions

View File

@ -34,10 +34,11 @@ plugin:
cp ../../toolkits/gocui/gocui.so resources/
andlabs: install
forge --gui andlabs
forge --gui andlabs --debugger
gocui: install
forge --gui gocui --gui-verbose >/tmp/forge.log 2>&1
# forge --gui gocui --gui-verbose >/tmp/forge.log 2>&1
forge --gui gocui --gui-verbose --debugger
goimports:
reset

20
debugger.go Normal file
View File

@ -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()
}()
}
}

View File

@ -12,6 +12,7 @@ import (
"time"
"go.wit.com/gui"
"go.wit.com/lib/debugger"
"go.wit.com/lib/gadgets"
"go.wit.com/lib/gui/shell"
"go.wit.com/log"
@ -203,4 +204,8 @@ func drawWindow(win *gadgets.BasicWindow) {
grid.NewButton("forge ConfigSave()", func() {
me.forge.ConfigSave()
})
grid.NewButton("debugger()", func() {
debugger.DebugWindow()
})
}