- [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:
2026-04-13 20:09:57 +02:00
parent 0142d79d91
commit 380295aed0
22 changed files with 232 additions and 160 deletions
+12 -3
View File
@@ -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();