MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / GetDebugger

Method GetDebugger

emmy_debugger/src/debugger/emmy_debugger_manager.cpp:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21std::shared_ptr<Debugger> EmmyDebuggerManager::GetDebugger(lua_State* L)
22{
23 std::lock_guard<std::mutex> lock(debuggerMtx);
24 auto identify = GetUniqueIdentify(L);
25 auto it = debuggers.find(identify);
26 if (it != debuggers.end())
27 {
28 return it->second;
29 }
30 else
31 {
32 return nullptr;
33 }
34}
35
36std::shared_ptr<Debugger> EmmyDebuggerManager::AddDebugger(lua_State* L)
37{

Callers 2

metaQueryFunction · 0.45
createNodeFunction · 0.45

Calls 2

findMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected