add engine pause mode

This commit is contained in:
MihailRis
2025-10-07 18:02:06 +03:00
parent c152cfc03f
commit 95f30da49b
4 changed files with 114 additions and 77 deletions
+9
View File
@@ -168,6 +168,15 @@ bool DebuggingServer::performCommand(
void DebuggingServer::onHitBreakpoint(dv::value&& stackTrace) {
logger.info() << "hit breakpoint:\n"
<< json::stringify(stackTrace, true, " ");
if (connection == nullptr) {
return;
}
connection->send(dv::object({
{"type", std::string("hit-breakpoint")},
{"stack", std::move(stackTrace)}
}));
engine.startPauseLoop();
}
void DebuggingServer::setClient(u64id_t client) {