ug4
lua_debug.cpp File Reference
#include <cassert>
#include <cstring>
#include <string>
#include <stack>
#include "ug.h"
#include "lua_util.h"
#include "common/util/file_util.h"
#include "bindings_lua.h"
#include "bridge/bridge.h"
#include "registry/class_helper.h"
#include "registry/registry.h"
#include "info_commands.h"
#include "lua_debug.h"
#include "common/profiler/runtime_profile_info.h"
#include "common/util/string_util.h"
#include "externals/lua/lstate.h"

Namespaces

 ug
 the ug namespace
 
 ug::script
 

Functions

void ug::script::AddBreakpoint (const char *source, int line)
 
void ug::script::breakpoint ()
 
void ug::script::breakpoint_in_script ()
 
void ug::script::CheckHook ()
 
void ug::script::DebugBacktrace (int fromLevel)
 lists the function stack in lua More...
 
void ug::script::DebugDown ()
 move down function stack More...
 
void ug::script::DebugHold ()
 
void ug::script::DebugList ()
 lists the current line in the script More...
 
void ug::script::DebugUp ()
 move down function stack More...
 
void ug::script::FinalizeLUADebug ()
 Free all memory associated with lua_debug. More...
 
int ug::script::getDepth ()
 
bool ug::script::IsLUADebug ()
 
void ug::script::LuaCallHook (lua_State *L, lua_Debug *ar)
 
void ug::script::luaDebug (lua_State *L, const char *source, int line)
 
void ug::script::PrintBreakpoints ()
 
void ug::script::ProfileLUA (bool b)
 
bool ug::script::RegisterLuaDebug (ug::bridge::Registry &reg)
 
int ug::script::SetDebugShell (debug_return(*s)())
 
void ug::script::SetLuaDebug (lua_State *L, string id)
 
void ug::script::SetLuaDebugIDs (lua_State *L)
 
void ug::script::UpdateDepth ()
 

Variables

static bool ug::script::bDebugging = false
 
static bool ug::script::bProfiling = false
 
static std::map< std::string, std::map< int, bool > > ug::script::breakpoints
 
int ug::script::curHookMask = 0
 
static int ug::script::currentDepth = -1
 
static int ug::script::debugMode = DEBUG_CONTINUE
 
static int ug::script::lastline = -1
 
static std::string ug::script::lastsource
 
static debug_return(* ug::script::pDebugShell )() = NULL
 
stack< string > ug::script::stkPathes