Configure VS Code for Debugging on Kubuntu

Brother Bill brotherbill at mail.com
Sat Feb 21 03:06:52 UTC 2026


On Friday, 20 February 2026 at 19:33:45 UTC, Brother Bill wrote:
> 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}"
>         }
>     ]
> }
> ```

Correction, .vscode/launch.json should be:
```
{
     // 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}",
			"console": "integratedTerminal",
			"internalConsoleOptions": "neverOpen"
         }
     ]
}
```




More information about the Digitalmars-d-learn mailing list