On Sunday, 7 December 2025 at 20:47:55 UTC, Sergey wrote:
On Sunday, 7 December 2025 at 19:57:57 UTC, Brother Bill wrote:
On Windows 11, I need a full helloWorld D project that compiles runs and debugs on VSCode.

What steps are necessary to make this happen?
Please include all files necessary, or provide link to zip file.
Or is this limited to Linux?

Which errors did you get?
Which steps are necessary to make to get these errors?

Please include all necessary files and compilers that your installed
Or is this limited to Windows 11 specific build?

Did vanilla install for Window 11 from dlang.org.

.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}"
        }
    ]
}
```

source/app.d
```
import std.stdio;

void main() {
        writeln("Greetings!");
}

```

dub.json  (I added last line due to VSCode suggestion)
```
{
        "authors": [
                "broth"
        ],
        "copyright": "Copyright © 2025, broth",
        "description": "A minimal D application.",
        "license": "proprietary",
        "name": "c48_1c_special_keywords_as_default_arguments",
        "buildOptions-windows": ["debugInfoC"]
}
```

dub.selections.json
```
{
        "fileVersion": 1,
        "versions": {
        }
}

```

I set a breakpoint on line 4 and it stops there after press F5 to Start Debugging. But when F10 is pressed on line 4, it doesn't write "Greetings!" to the Debug Console nor the Terminal.

The Debug Console has this error message:
```
------------------------------------------------------------------------------
You may only use the C/C++ Extension for Visual Studio Code with Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you develop and
test your applications.
------------------------------------------------------------------------------
```

Thanks in advance for your assistance.

Reply via email to