Ability to print and log script backtraces

Co-authored-by: Mikael Hermansson <mikael@hermansson.io>
This commit is contained in:
reduzandMikael Hermansson authored and Mikael Hermansson committed 2025-04-24 18:54:41 +02:00
1 parent f704113abe
commit d1dcb40d56
32 files changed
+813 -95

No files matched your search

+1 -1
View File
@@ -161,7 +161,7 @@ void GDScriptByteCodeGenerator::end_parameters() {
void GDScriptByteCodeGenerator::write_start(GDScript *p_script, const StringName &p_function_name, bool p_static, Variant p_rpc_config, const GDScriptDataType &p_return_type) {
function = memnew(GDScriptFunction);
debug_stack = EngineDebugger::is_active();
debug_stack = GDScriptLanguage::get_singleton()->should_track_locals();
function->name = p_function_name;
function->_script = p_script;