Abstract:To make full use of the characteristics of Lua dynamic scripting language for the current development of large and complex programs, which has the problem of high cost, this article focuses on how to simulate the message mechanism based on event in the Lua script and visiting the C + + interface. The design of Lua debugger is also presented.