when i hit F5 initially to Start Debugging, the debugger stops at a preset breakpoint. i hit F5 to continue... the Debug Console prints out it's continuing ... nothing happens after ... so i hit F5 to continue again, and again the Debug Console prints out the debugger is continuing .... but the app / screen doesnt show up/get displayed
2018/01/31 23:12:36 server.go:73: Using API v1
2018/01/31 23:12:36 debugger.go:96: launching process with args: [f:\gowork\src\test\debug]
2018/01/31 23:12:36 debugger.go:335: created breakpoint: &api.Breakpoint{ID:1, Name:"", Addr:0x5c036b, File:"f:/gowork/src/test/test.go", Line:8, FunctionName:"main.main", Cond:"", Tracepoint:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), HitCount:map[string]uint64{}, TotalHitCount:0x0}
2018/01/31 23:12:36 debugger.go:492: continuing
2018/01/31 23:12:44 debugger.go:492: continuing
i'm using a terminal user interface package that i like (.
github.com/rivo/tview) my code is longer than the small demo code below, but i get the above behavior when i try to debug the code below (a tview demo example) inside VSCODE. when i go run test.go (the demo go file) in a command prompt, a button widget appears at the top corner of the command prompt.
**** test.go (tview demo code example)
// Demo code for the Button primitive.
package main
func main() {
app := tview.NewApplication()
button := tview.NewButton("Hit Enter to close").SetSelectedFunc(func() {
app.Stop()
})
button.SetBorder(true).SetRect(0, 0, 22, 3)
if err := app.SetRoot(button, false).SetFocus(button).Run(); err != nil {
panic(err)
}
}
*** what am i not doing correctly? what can i do to learn more what's going on?