mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
replace 'hit-breakpoint' with 'paused'
This commit is contained in:
parent
33a5410ca2
commit
f4c3b53cd1
2 changed files with 7 additions and 9 deletions
|
|
@ -41,7 +41,7 @@ debug.sethook(function (e, line)
|
|||
end
|
||||
end
|
||||
current_func = func
|
||||
__pause()
|
||||
__pause("step")
|
||||
debug.pull_events()
|
||||
end
|
||||
hook_lock = false
|
||||
|
|
|
|||
|
|
@ -219,14 +219,12 @@ void DebuggingServer::pause(
|
|||
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)}
|
||||
}));
|
||||
}
|
||||
connection->send(dv::object({
|
||||
{"type", std::string("paused")},
|
||||
{"reason", std::move(reason)},
|
||||
{"message", std::move(message)},
|
||||
{"stack", std::move(stackTrace)}
|
||||
}));
|
||||
engine.startPauseLoop();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue