lua_autoexp autoexp.dat for lua5.2 Edit autoexp.dat in vs,insert before [hresult],then you can see callstack and vars in lua while debug in visualstudio.