mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #962] Configuration for debug with vscode on linux ( open /dev/tty: no such device or address ) #706
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#706
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @OsvaldoTCF on GitHub (Mar 26, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/962
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
.

.
@rivo commented on GitHub (Mar 26, 2024):
I have this line in my
launch.jsonfile: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 on GitHub (Mar 26, 2024):
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": [],
},
]
}