feat: hardcoded breakpoint

This commit is contained in:
2025-11-06 15:57:45 +13:00
parent 2e958fa1ec
commit 529e51009c
+5
View File
@@ -118,6 +118,11 @@ bool ScriptEngine::CompileScript(const std::string& filename) {
updateFunc = currentModule->GetFunctionByName("Update");
drawFunc = currentModule->GetFunctionByName("Draw");
hasValidScript = true;
// If debugger is present, add a function breakpoint on Update to stop when Update is entered
// The debugger will transform function breakpoints into file breakpoints when the function is entered
if (debugger && updateFunc) {
debugger->AddFuncBreakPoint("Update");
}
log_info("Script compiled and cached: %s", filename.c_str());
return true;
}