add 'reason' argument to debug.pause

This commit is contained in:
MihailRis
2025-10-09 00:23:54 +03:00
parent 972181022a
commit 33a5410ca2
4 changed files with 17 additions and 6 deletions
+4 -1
View File
@@ -213,13 +213,16 @@ bool DebuggingServer::performCommand(
return false;
}
void DebuggingServer::pause(std::string&& message, dv::value&& stackTrace) {
void DebuggingServer::pause(
std::string&& reason, std::string&& message, dv::value&& stackTrace
) {
if (connection == nullptr) {
return;
}
if (stackTrace != nullptr) {
connection->send(dv::object({
{"type", std::string("hit-breakpoint")},
{"reason", std::move(reason)},
{"message", std::move(message)},
{"stack", std::move(stackTrace)}
}));