[GH-ISSUE #962] Configuration for debug with vscode on linux ( open /dev/tty: no such device or address ) #706

Closed
opened 2026-03-04 01:07:10 +03:00 by kerem · 2 comments
Owner

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

.
image
.

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 . ![image](https://github.com/rivo/tview/assets/5272869/7c80337d-b30a-478f-8c75-fdea5e32c862) .
kerem closed this issue 2026-03-04 01:07:10 +03:00
Author
Owner

@rivo commented on GitHub (Mar 26, 2024):

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.

<!-- gh-comment-id:2021494924 --> @rivo commented on GitHub (Mar 26, 2024): I have this line in my `launch.json` file: ```json "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.
Author
Owner

@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": [],
},
]
}

<!-- gh-comment-id:2021571514 --> @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": [], }, ] }
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#706
No description provided.