|
Lib
QOLを高める
|
Lua debugger. More...
#include <script_debugger.h>
Public Member Functions | |
| LuaDebugger (lua_State *L, bool debugEnable, int instLimit, size_t heapSize) | |
| Constructor. More... | |
| lua_State * | getLuaState () const |
| Get Lua state. More... | |
| void | loadDebugInfo (const char *name, const char *src, size_t size) |
| Load debug info from chunk name and source string. More... | |
| void | pcall (int narg, int nret, bool autoBreak) |
| Prepare and call lua_pcall(). More... | |
| bool | help (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | conf (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | mem (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | bt (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | fr (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | src (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | eval (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | watch (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | c (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | s (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | n (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | out (const wchar_t *usage, const std::vector< std::wstring > &args) |
| bool | bp (const wchar_t *usage, const std::vector< std::wstring > &args) |
Lua debugger.
Used in Lua class.
Definition at line 15 of file script_debugger.h.
| yappy::lua::debugger::LuaDebugger::LuaDebugger | ( | lua_State * | L, |
| bool | debugEnable, | ||
| int | instLimit, | ||
| size_t | heapSize | ||
| ) |
Constructor.
| [in] | L | Lua state. |
| [in] | debugEnable | Debug hook enabled switch. |
| [in] | instLimit | Lua bytecode instruction count limit. (no limit if 0) |
| [in] | heapSize | Heap size for mem command. |
Definition at line 68 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::bp | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 991 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::bt | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 803 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::c | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 961 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::conf | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 753 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::eval | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 896 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::fr | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 818 of file script_debugger.cpp.
| lua_State * yappy::lua::debugger::LuaDebugger::getLuaState | ( | ) | const |
| bool yappy::lua::debugger::LuaDebugger::help | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 732 of file script_debugger.cpp.
| void yappy::lua::debugger::LuaDebugger::loadDebugInfo | ( | const char * | name, |
| const char * | src, | ||
| size_t | size | ||
| ) |
Load debug info from chunk name and source string.
| [in] | name | Chunk name (file name) |
| [in] | src | Source string. |
| [in] | size | Source string size. |
Definition at line 79 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::mem | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 777 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::n | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 975 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::out | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 983 of file script_debugger.cpp.
| void yappy::lua::debugger::LuaDebugger::pcall | ( | int | narg, |
| int | nret, | ||
| bool | autoBreak | ||
| ) |
Prepare and call lua_pcall().
| [in] | narg | Arguments count. |
| [in] | nret | Return values count. |
| [in] | autoBreak | Debug break at the first line. |
Definition at line 119 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::s | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 968 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::src | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 852 of file script_debugger.cpp.
| bool yappy::lua::debugger::LuaDebugger::watch | ( | const wchar_t * | usage, |
| const std::vector< std::wstring > & | args | ||
| ) |
Definition at line 918 of file script_debugger.cpp.
1.8.11