I can build project in VSCode but I don’t see any output in debug console
using VSCode 1.109.5 Windows 10
swift-6.2.4-RELEASE-windows10.exe
launch.json
{
"configurations": [
{
"type": "swift",
"request": "launch",
"args": [],
"cwd": "${workspaceFolder:hello-world}",
"name": "Debug hello-world",
"target": "hello-world",
"configuration": "debug",
"preLaunchTask": "swift: Build Debug hello-world"
},
{
"type": "swift",
"request": "launch",
"args": [],
"cwd": "${workspaceFolder:hello-world}",
"name": "Release hello-world",
"target": "hello-world",
"configuration": "release",
"preLaunchTask": "swift: Build Release hello-world"
}
]
}
hello-world.swift
// The Swift Programming Language
// https://docs.swift.org/swift-book
@main
struct hello_world {
static func main() {
print("Hello, world!")
}
}
