Lib
QOLを高める
Classes | Public Member Functions | List of all members
yappy::lua::debugger::LuaDebugger Class Reference

Lua debugger. More...

#include <script_debugger.h>

Inheritance diagram for yappy::lua::debugger::LuaDebugger:
yappy::util::noncopyable

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)
 

Detailed Description

Lua debugger.

Used in Lua class.

See also
yappy::lua::Lua

Definition at line 15 of file script_debugger.h.

Constructor & Destructor Documentation

yappy::lua::debugger::LuaDebugger::LuaDebugger ( lua_State *  L,
bool  debugEnable,
int  instLimit,
size_t  heapSize 
)

Constructor.

Parameters
[in]LLua state.
[in]debugEnableDebug hook enabled switch.
[in]instLimitLua bytecode instruction count limit. (no limit if 0)
[in]heapSizeHeap size for mem command.

Definition at line 68 of file script_debugger.cpp.

Member Function Documentation

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

Get Lua state.

Returns
Lua state.

Definition at line 74 of file script_debugger.cpp.

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.

Parameters
[in]nameChunk name (file name)
[in]srcSource string.
[in]sizeSource 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().

Parameters
[in]nargArguments count.
[in]nretReturn values count.
[in]autoBreakDebug 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.


The documentation for this class was generated from the following files: