add debug.breakpoint

This commit is contained in:
MihailRis
2025-10-06 21:47:53 +03:00
parent 5eceed3737
commit c152cfc03f
4 changed files with 130 additions and 0 deletions
+5
View File
@@ -165,6 +165,11 @@ bool DebuggingServer::performCommand(
return true;
}
void DebuggingServer::onHitBreakpoint(dv::value&& stackTrace) {
logger.info() << "hit breakpoint:\n"
<< json::stringify(stackTrace, true, " ");
}
void DebuggingServer::setClient(u64id_t client) {
this->connection =
std::make_unique<ClientConnection>(engine.getNetwork(), client);
+1
View File
@@ -41,6 +41,7 @@ namespace devtools {
~DebuggingServer();
bool update();
void onHitBreakpoint(dv::value&& stackTrace);
void setClient(u64id_t client);
private: