Skip to content

Commit 4cacaea

Browse files
committed
抛异常打印栈
1 parent 0b9c42f commit 4cacaea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unity/upms/mcp/Runtime/McpScriptManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void Initialize(string resourceRoot, int port = 3100, Action<bool> onRead
9797
}
9898
catch (Exception ex)
9999
{
100-
lastError = $"[McpScriptManager] Failed to initialize: {ex.Message}";
100+
lastError = $"[McpScriptManager] Failed to initialize: {ex.Message} {ex.StackTrace}";
101101
Debug.LogError(lastError);
102102
isInitialized = false;
103103
}

0 commit comments

Comments
 (0)