lua-debug icon indicating copy to clipboard operation
lua-debug copied to clipboard

How to debug a lua script run by c/c++ program

Open aengusjiang opened this issue 4 years ago • 2 comments

there is a program a, it will run a lua script when a runing.

aengusjiang avatar Mar 13 '20 15:03 aengusjiang

Did you manage to attach the debugger to an embedded lua runtime?

Trolldemorted avatar Mar 25 '20 00:03 Trolldemorted

不知道目前是否可以调试C启动的lua呢? 一个很简单的案例: lua_State *pLuaState = luaL_newstate(); luaL_openlibs(pLuaState); lua_Hook hook = lua_gethook(pLuaState); int luaResult = luaL_dofile(pLuaState, "C:/Users/Cleve/Documents/GitHub/FurnaceEngine/assets/lua/main.lua"); printf("%d", luaResult);

Clevergua avatar Dec 16 '23 15:12 Clevergua