xingxingtie

Results 2 comments of xingxingtie

```shell PS G:\ant\github\vaststars> & 'G:/ant/github/vaststars/bin/msvc/debug/ant.exe' '-e' 'dofile[[c:/Users/username/.vscode/extensions/actboy168.lua-debug-2.0.10-win32-x64/script/launch.lua]];DBG[[38296/lua-latest]]' 'startup/main.lua' Service 1 error: /engine/firmware/ltask_service.lua:1: attempt to index a nil value stack traceback: /engine/firmware/ltask_service.lua:1: in main chunk PS G:\ant\github\vaststars> ``` ----------------------------------------------------------------------------------------------- 深感认同,这个报错我调试时也一直出现。即使用最新的Lua Debug也不行...

继续跟踪到`C:\Users\abc\.vscode\extensions\actboy168.lua-debug-2.0.10-win32-x64\script\debugger.lua` 第148行附近,添加打印 ```lua local isWindows = package.config:sub(1, 1) == "\\" if isWindows then assert(package.loadlib(luadebug, 'init'))(cfg.luaapi) end ---@type LuaDebug dbg.rdebug = assert(package.loadlib(luadebug, 'luaopen_luadebug'))() if not os.getenv "LUA_DEBUG_PATH" then print("set path:", selfsource)...