How do you create an executable file when debugging Swift in VSCode using CodeLLDB?

45 views Asked by At

I'm trying to run/debug Swift code in VSCode, and I'm running into a problem. Whenever I try to run the Swift file, I get a message that says "unable to find executable for '<full program path from C: drive to file, no extension>.exe'. The problem is, I don't know why it's looking for a .exe when I want to run a Swift file. Does someone know what's going on?

{
    "launch": {
        "configurations": [
            {
                "name": "Launch",
                "type": "lldb",
                "request": "launch",
                "program": "/C:/desir_7411ic3/Desktop/Programs/swift/swifttest",
            }
        ]
    }
}

I tried a few different forms of the path

just the folder and the program file with extension combinations of the two above

0

There are 0 answers