- [WIP] Fase 2 quasi acabada
- [FIX] Arreglos per al debugger - [FIX] Calcul de la posició del mouse en coordenades tenint en compte view.origin
This commit is contained in:
@@ -143,9 +143,13 @@ namespace mini
|
||||
//const char* src = chunkToPath(ar.source).c_str();
|
||||
|
||||
json frame = {
|
||||
{ "file", chunkToPath(ar.source).c_str() },
|
||||
{ "id", depth + 1 },
|
||||
{ "name", ar.name ? ar.name : "?" },
|
||||
{ "line", ar.currentline },
|
||||
{ "name", ar.name ? ar.name : "?" }
|
||||
{ "column", 1 },
|
||||
{ "source", {
|
||||
{ "path", chunkToPath(ar.source) }
|
||||
}}
|
||||
};
|
||||
|
||||
frames.push_back(frame);
|
||||
@@ -153,7 +157,8 @@ namespace mini
|
||||
}
|
||||
|
||||
return json{
|
||||
{ "frames", frames }
|
||||
{ "stackFrames", frames },
|
||||
{ "totalFrames", depth }
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1340,6 +1345,10 @@ namespace mini
|
||||
}
|
||||
}
|
||||
|
||||
void init(lua_State* L) {
|
||||
lua_sethook(L, luaHook, LUA_MASKCALL | LUA_MASKRET, 0);
|
||||
}
|
||||
|
||||
void kill_thread() {
|
||||
g_running = false;
|
||||
stdinThread.request_stop();
|
||||
|
||||
Reference in New Issue
Block a user