replace 'hit-breakpoint' with 'paused'

This commit is contained in:
MihailRis 2025-10-09 00:28:06 +03:00
parent 33a5410ca2
commit f4c3b53cd1
2 changed files with 7 additions and 9 deletions

View File

@ -41,7 +41,7 @@ debug.sethook(function (e, line)
end end
end end
current_func = func current_func = func
__pause() __pause("step")
debug.pull_events() debug.pull_events()
end end
hook_lock = false hook_lock = false

View File

@ -219,14 +219,12 @@ void DebuggingServer::pause(
if (connection == nullptr) { if (connection == nullptr) {
return; return;
} }
if (stackTrace != nullptr) { connection->send(dv::object({
connection->send(dv::object({ {"type", std::string("paused")},
{"type", std::string("hit-breakpoint")}, {"reason", std::move(reason)},
{"reason", std::move(reason)}, {"message", std::move(message)},
{"message", std::move(message)}, {"stack", std::move(stackTrace)}
{"stack", std::move(stackTrace)} }));
}));
}
engine.startPauseLoop(); engine.startPauseLoop();
} }