Launching an external terminal #1006
-
I'm trying to use a configuration from The issue is that it complains with "open /dev/tty: no such device or address". This is the minimal {
"name": "Debug Lazygit",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "main.go",
"args": ["--debug", "--use-config-file=${workspaceFolder}/.vscode/debugger_config.yml"],
"console": "integratedTerminal",
"presentation": {
"hidden": true
}
}, This is the output of the
I tried using If I switch to So I thought I might launch an external terminal in require( 'dap' ).defaults.fallback.external_terminal = {
command = '/usr/bin/kitty';
args = {'--hold'};
} Yet, the error remains. Just to confirm that I've set the {
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "lldb",
"request": "launch",
"program": "target/debug/gitui",
"console": "externalTerminal",
}
]
} And it launches it in a separate What am I missing? It's as if Additional info: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
delve afaik still doesn't support either integratedTerminal or externalTerminal. That it works in vscode is because the vscode-go extension implements it on the client side. See #987 (comment) |
Beta Was this translation helpful? Give feedback.
-
I know it has been some time since this was posted but i found a way to make this work. (for some context, im also using nvim-dap-ui) simply change the debugger command for delve in the adapter from "dlv", to your console, in my case kitty. Then move dlv to the args and it should work. This also fixes the problem where the input gets stuck on the debug console, since the debug console is still on neovim. It should look kinda like this (this is the config i use).
|
Beta Was this translation helpful? Give feedback.
delve afaik still doesn't support either integratedTerminal or externalTerminal. That it works in vscode is because the vscode-go extension implements it on the client side.
See #987 (comment)