1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Mono: Some StackTrace to StackInfo[] fixes

- Sometimes `StackFrame.GetMethod()` returns null (e.g.: latest frame of a `MissingMethodException`). Still not sure what to do with that frame (maybe skip it), but at least it no longer fails.
- Skip `CSharpLanguage::debug_get_current_stack_info()` if an error is printed from `GDMonoUtils::update_corlib_cache()`.
- Fix crash when calling `GDMonoUtils::print_unhandled_exception(exc)` if there is no ScriptDebugger attached.
This commit is contained in:
Ignacio Etcheverry
2018-01-12 19:23:11 +01:00
parent feb843da2b
commit bff9627dc4
4 changed files with 38 additions and 6 deletions

View File

@@ -26,6 +26,12 @@ namespace Godot
MethodBase methodBase = frame.GetMethod();
if (methodBase == null)
{
methodDecl = string.Empty;
return;
}
StringBuilder sb = new StringBuilder();
if (methodBase is MethodInfo methodInfo)