rivo / tview

Terminal UI library with rich, interactive widgets — written in Golang
MIT License
11.13k stars 575 forks source link

Configuration for debug with vscode on linux ( open /dev/tty: no such device or address ) #962

Closed OsvaldoTCF closed 8 months ago

OsvaldoTCF commented 8 months ago

Could anyone help me with configuring VSCode to be able to debug the code with TView?

It would be cool to have this on the wiki.

I am very grateful!

VSCode: 1.87.2 OS: Linux x64 5.15.0-94-generic Ubuntu 22.04

. image .

rivo commented 8 months ago

I have this line in my launch.json file:

"console": "integratedTerminal",

I'm not exactly sure if this is what you need but it might be. If it solves your problem, please let me know.

OsvaldoTCF commented 8 months ago

After a few days, now, your tip helped me find the information I needed, thank you very much.

https://github.com/golang/vscode-go/issues/124

my launch.json

{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Debug Cli", "type": "go", "request": "launch", "mode": "debug", "debugAdapter": "dlv-dap", "console": "integratedTerminal", "cwd": "${workspaceFolder}", "program": "${workspaceFolder}/cmd/main.go", "args": [], }, ] }