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

Method FindBreakPoint

emmy_debugger/src/debugger/emmy_debugger.cpp:1190–1206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1188}
1189
1190std::shared_ptr<BreakPoint> Debugger::FindBreakPoint(lua_Debug *ar) {
1191 if (!currentL) {
1192 return nullptr;
1193 }
1194
1195 auto L = currentL;
1196
1197 const int cl = getDebugCurrentLine(ar);
1198 auto lineSet = manager->GetLineSet();
1199
1200 if (cl >= 0 && lineSet.find(cl) != lineSet.end()) {
1201 lua_getinfo(L, "S", ar);
1202 const auto chunkname = GetFile(ar);
1203 return FindBreakPoint(chunkname, cl);
1204 }
1205 return nullptr;
1206}
1207
1208std::shared_ptr<BreakPoint> Debugger::FindBreakPoint(const std::string &chunkname, int line) {
1209 std::shared_ptr<BreakPoint> breakedpoint = nullptr;

Callers

nothing calls this directly

Calls 6

GetLineSetMethod · 0.80
findMethod · 0.80
endMethod · 0.80
GetBreakpointsMethod · 0.80
getDebugCurrentLineFunction · 0.50
lua_getinfoFunction · 0.50

Tested by

no test coverage detected