本文中使用的Godot版本为github上的4.2.2稳定发行版
GDExtension使用实例见https://www.cnblogs.com/Biiigwang/p/18146724/gdextensionde-c-shi-li-z2bpicf
- lauch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"preLaunchTask": "build",
"name": "Debug",
"program": "E:\\Godot_v4.2.2-stable_win64.exe\\Godot_v4.2.2-stable_win64.exe",
"args": ["--path","E:\\Godot_v4.2.2-stable_win64.exe\\demo"],
"cwd": "${workspaceFolder}"
}
]
}
- tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "scons target=template_debug debug_symbols=yes platform=windows"
}
]
}