1. 下载 Emmylua
2. 创建文件 luanch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Unity Editor",
"type": "unity",
"path": "D:/FourthProj/NewClient/clientnew/Library/EditorInstance.json",
"request": "launch"
},
{
"type": "emmylua_attach",
"request": "attach",
"name": "通过进程ID附加",
"pid": 0,
"processName": "",
"captureLog": false
}
]
}
3. 直接运行调试即可(lua调试, Unity Editor调试, 可以进行切换查看堆栈信息,参数信息)