Merge pull request #91006 from reduz/live-backtrace

Ability to print and log script backtraces
This commit is contained in:
Thaddeus Crews 2025-04-24 17:18:52 -05:00
commit 28089c40c1
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
32 changed files with 813 additions and 95 deletions

View file

@ -490,7 +490,6 @@ String CSharpLanguage::debug_get_stack_level_source(int p_level) const {
}
Vector<ScriptLanguage::StackInfo> CSharpLanguage::debug_get_current_stack_info() {
#ifdef DEBUG_ENABLED
// Printing an error here will result in endless recursion, so we must be careful
static thread_local bool _recursion_flag_ = false;
if (_recursion_flag_) {
@ -512,9 +511,6 @@ Vector<ScriptLanguage::StackInfo> CSharpLanguage::debug_get_current_stack_info()
}
return si;
#else
return Vector<StackInfo>();
#endif
}
void CSharpLanguage::post_unsafe_reference(Object *p_obj) {