|
发表于 2025-3-5 10:33:24
|
显示全部楼层
为什么我的配置是这样的, 折腾了半天了没弄好
以便以移植报错Missing “program” to debug
"version": "0.2.0",
"configurations": [
{
"arg": [],
"name": "launch",
"program": "${workspaceFolder}/main.lua",
"request": "launch",
"stopOnEntry": true,
"type": "lua"
},
{
"name": "launch process",
"request": "launch",
"runtimeArgs": "${workspaceFolder}/main.lua",
"runtimeExecutable": "${workspaceFolder}/lua.exe",
"stopOnEntry": true,
"type": "lua"
},
{
"address": "127.0.0.1:4278",
"name": "attach",
"request": "attach",
"stopOnEntry": true,
"type": "lua"
},
{
"name": "launch-alone-lua51",
"type": "lua",
"port": 47111,
"runtimeType": "standalone",
"request": "launch",
"stopOnEntry": true,
"localRoot": "${workspaceRoot}"
},
{
"name": "attach(Unity)",
"request": "attach",
"runtimeType": "attachUnity",
"localRoot": "${workspaceRoot}",
"port": 47111
},
{
"type": "lua",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/.vscode/main.lua"
}
]
} |
|