EmmyLua Debug Adapter is dap based on EmmyLuaDebugger
insert debug code:
package.cpath = package.cpath .. ";<path to emmy_core>/?.dll"
local dbg = require("emmy_core")
dbg.tcpListen("localhost", 9966)
dbg.waitIDE() -- donot need
dbg.breakHere() -- donot need
package.cpath = package.cpath .. ";<path to emmy_core>/?.dll"
local dbg = require("emmy_core")
dbg.tcpListen("localhost", 9966)
dbg.waitIDE() -- donot need
dbg.breakHere() -- donot need
And start your program, waitting for dap connected.
{
"type": "emmylua_new",
"request": "launch",
"name": "EmmyLua New Debug",
"host": "localhost",
"port": 9966,
"sourcePaths": [
"${workspaceFolder}",
],
"ext": [
".lua",
".lua.txt",
".lua.bytes"
],
"ideConnectDebugger": true
}
TODO: I don't know how to use it in other editor, please help me to add it.