add 'step' and 'resume' commands
This commit is contained in:
@@ -284,12 +284,14 @@ void Engine::postUpdate() {
|
||||
scripting::process_post_runnables();
|
||||
|
||||
if (debuggingServer) {
|
||||
if (!debuggingServer->update()) {
|
||||
debuggingServer.reset();
|
||||
}
|
||||
debuggingServer->update();
|
||||
}
|
||||
}
|
||||
|
||||
void Engine::detachDebugger() {
|
||||
debuggingServer.reset();
|
||||
}
|
||||
|
||||
void Engine::updateFrontend() {
|
||||
double delta = time.getDelta();
|
||||
updateHotkeys();
|
||||
@@ -317,10 +319,9 @@ void Engine::startPauseLoop() {
|
||||
input->toggleCursor();
|
||||
}
|
||||
}
|
||||
while (!isQuitSignal()) {
|
||||
while (!isQuitSignal() && debuggingServer) {
|
||||
network->update();
|
||||
if (!debuggingServer->update()) {
|
||||
debuggingServer.reset();
|
||||
if (debuggingServer->update()) {
|
||||
break;
|
||||
}
|
||||
if (isHeadless()) {
|
||||
|
||||
@@ -190,4 +190,6 @@ public:
|
||||
devtools::DebuggingServer* getDebuggingServer() {
|
||||
return debuggingServer.get();
|
||||
}
|
||||
|
||||
void detachDebugger();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user