协程无法调试,还有可能闪退
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- lua, unity, vscode
- Domain
- developer-experience, devtools
Research direction
Start with the emmy_core tcpConnect calls and the coroutine.create/coroutine.resume reproductions in the issue, using the shown VS Code, EmmyLua, Unity, and xlua versions. Investigate why a resumed coroutine disables breakpoints and why reconnecting from inside it crashes Unity. Done means both coroutine cases no longer lose debugging or terminate the debugger.
Written by the indexing model from the issue text.
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)
- Dominant language
- C++
- Stars
- 253
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EmmyLua/EmmyLuaDebugger
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
EmmyLua/EmmyLuaDebugger#83 · 25 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
EmmyLua/EmmyLuaDebugger#79 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
EmmyLua/EmmyLuaDebugger#77 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
EmmyLua/EmmyLuaDebugger#71 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
EmmyLua/EmmyLuaDebugger#70 · 1 comment ·
All issues in EmmyLua/EmmyLuaDebugger
Similar issues
-
AuTest Bug Tests
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/trafficserver#13714 ·
-
bug build
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
facebookincubator/velox#19143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tenstorrent/tt-metal#57393 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
objectionary/eo-graphs#74 ·