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
current_func = func
__pause()
__pause("step")
debug.pull_events()
end
hook_lock = false

View File

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