This commit is contained in:
MihailRis 2025-11-16 01:19:27 +03:00
parent 289c962df1
commit 218c716892
2 changed files with 6 additions and 4 deletions

View File

@ -197,6 +197,7 @@ bool DebuggingServer::performCommand(
connectionEstablished = true;
logger.info() << "client connection established";
connection->sendResponse("success");
return true;
}
if (!connectionEstablished) {
return false;

View File

@ -309,14 +309,15 @@ static int l_debug_sendvalue(lua::State* L) {
lua::pushnil(L);
while (lua::next(L, 1)) {
auto key = lua::tolstring(L, -2);
lua::pushvalue(L, -2);
int type = lua::type(L, -1);
auto key = lua::tolstring(L, -1);
int type = lua::type(L, -2);
table[std::string(key)] = dv::object({
{"type", std::string(lua::type_name(L, type))},
{"short", get_short_value(L, -1, type)},
{"short", get_short_value(L, -2, type)},
});
lua::pop(L);
lua::pop(L, 2);
}
lua::pop(L);
value = std::move(table);