Beispiel #1
0
        public void CrashPayloadRequest()
        {
            var crashPayload = CrashPayloadUtils.ComputePayload
                               (
                DCL.Environment.i.world.state.loadedScenes,
                Environment.i.platform.debugController.GetTrackedMovements(),
                Environment.i.platform.debugController.GetTrackedTeleportPositions()
                               );

            CrashPayloadResponse(crashPayload);
        }
Beispiel #2
0
        public void DumpCrashPayload()
        {
            var payload = CrashPayloadUtils.ComputePayload
                          (
                DCL.Environment.i.world.state.loadedScenes,
                Environment.i.platform.debugController.GetTrackedMovements(),
                Environment.i.platform.debugController.GetTrackedTeleportPositions()
                          );

            foreach (var field in payload.fields)
            {
                string dump = JsonConvert.SerializeObject(field.Value);
                debugLogger.Log($"Crash payload ({field.Key}): {dump}");
            }

            string fullDump = JsonConvert.SerializeObject(payload);

            debugLogger.Log($"Full crash payload size: {fullDump.Length}");
        }