replace 'hit-breakpoint' with 'paused'
This commit is contained in:
parent
33a5410ca2
commit
f4c3b53cd1
@ -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…
x
Reference in New Issue
Block a user