-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
配置信息:
vscode为1.91.1
EmmyLua为0.9.19
Unity2019 + xlua
launch.json配置:
{
"type": "emmylua_new",
"request": "launch",
"name": "EmmyLua New Debug",
"host": "localhost",
"port": 9876,
"ext": [
".lua",
".lua.txt",
".lua.bytes"
],
"ideConnectDebugger": false
},
使用下面的代码连上调试器后
local dbg = require('emmy_core')
dbg.tcpConnect('localhost', port)
执行协程代码会使断点失效:
local co = coroutine.create(function()
-- dummy
end);
coroutine.resume(co)
如果在协程内尝试再连调试器,Unity闪退,调试器也终止
local co = coroutine.create(function()
-- dummy
local dbg = require('emmy_core')
dbg.tcpConnect('localhost', port)
end);
coroutine.resume(co)
Metadata
Metadata
Assignees
Labels
No labels