mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add 'reason' argument to debug.pause
This commit is contained in:
parent
972181022a
commit
33a5410ca2
4 changed files with 17 additions and 6 deletions
|
|
@ -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)}
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue