Configure VS Code for Debugging on Kubuntu
Brother Bill
brotherbill at mail.com
Fri Feb 20 19:33:45 UTC 2026
On Friday, 20 February 2026 at 11:43:15 UTC, Brother Bill wrote:
> Any suggestions?
For Ubuntu 24.04-LTS, these two files with these contents got the
job done.
1. It debugs
2. It properly uses the Terminal Window for stdin and stdout
.vscode/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": [
{
"type": "code-d",
"request": "launch",
"dubBuild": true,
"name": "Build & Debug DUB project",
"cwd": "${command:dubWorkingDirectory}",
"program": "${command:dubTarget}"
}
]
}
```
.vscode/tasks.json
```
{
"version": "2.0.0",
"tasks": [
{
"label": "dub: build",
"type": "shell",
"command": "dub build",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true
},
"problemMatcher": []
},
{
"label": "dub: run (integratedTerminal)",
"type": "shell",
"command": "dub run",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared"
},
"problemMatcher": []
}
]
}
```
More information about the Digitalmars-d-learn
mailing list