|
|
The LuaPlus Visual Studio LuaWatchAddin provides facilities whereby the Watch window will show the contents of a LuaObject, LuaTableIterator, LuaStackObject, LuaStackTableIterator, or TString (when stepping inside Lua internals). The LuaWatchAddin does not expand Lua tables, but an additional add-in does.
Copy LuaPlus/Bin/LuaWatchAddin.dll to Program Files/Microsoft Visual Studio .NET/Common7/IDE.
Add the following lines to the bottom of Program Files/Microsoft Visual Studio .NET/Common7/Packages/Debugger/autoexp.dat:
; LuaPlus
LuaPlus: uaObject=$ADDIN(LuaWatchAddin.dll,AddIn_LuaObject)
LuaPlus::LuaStackObject=$ADDIN(LuaWatchAddin.dll,AddIn_LuaStackObject)
LuaPlus::LuaStackTableIterator=$ADDIN(LuaWatchAddin.dll,AddIn_LuaStackTableIterator)
LuaPlus::LuaTableIterator=$ADDIN(LuaWatchAddin.dll,AddIn_LuaTableIterator)
TString=$ADDIN(LuaWatchAddin.dll,AddIn_TString)
Start debugging.
LuaPlus::LuaObjects, LuaPlus::StackObjects, LuaPlus::LuaTableIterators, LuaPlus::StackTableIterators and TStrings will expand in the watch window.
按上面说得都做了,debug断点时,看不出什么效果
另外lua脚本如果有语法错误,竟然也检测不到,只报地址错,用纯LUA还能知道错在哪里,至少有个提示,LUAPLUS比如脚本哪里有错误,完全提示都没有,官方网站上也没介绍,这方面资料好少
|
|