This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Unable to debug terminal user interface #2151
Closed
Description
openedon Nov 26, 2018
I tried bringing this up in Gopher Slack but no response.
So i have an interesting situation. Here is a super basic TUI
package main
import "github.com/rivo/tview"
func main() {
box := tview.NewBox().SetBorder(true).SetTitle("Hello, world!")
if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil {
panic(err)
}
}
This runs with go run main.go
from the integrated terminal with no issues but gives panic: open /dev/tty: no such device or address
Is there some special settings to have this work in the Debug Console or launch a go app in a new terminal while still attaching the debugger?
My .vscode/launch.json
contains
{
"name": "TestTUI",
"type": "go",
"request": "launch",
"mode": "auto",
"remotePath": "",
"port": 2345,
"host": "127.0.0.1",
"program": "${workspaceRoot}/main.go",
"env": {},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment