feat: hardcoded breakpoint
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user