Description:
Move some test use of Spy to debug.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -103,8 +103,6 | |||||
|
103 | var start_x = random_generator.Next(0, 50); |
|
103 | var start_x = random_generator.Next(0, 50); |
|
104 | var start_y = random_generator.Next(0, 50); |
|
104 | var start_y = random_generator.Next(0, 50); |
|
105 |
|
105 | ||
|
106 | Logging.Spy(start_x, nameof(start_x)); |
|
||
|
107 | Logging.Spy(new {start_x, start_y}); |
|
||
|
108 |
|
106 | ||
|
109 | int max_squares = (message.max_squares == 0) ? DEFAULT_SQUARES : message.max_squares; |
|
107 | int max_squares = (message.max_squares == 0) ? DEFAULT_SQUARES : message.max_squares; |
|
110 | int min_squares = (message.min_squares == null) ? DEFAULT_MIN_SQUARES : (int)message.min_squares; |
|
108 | int min_squares = (message.min_squares == null) ? DEFAULT_MIN_SQUARES : (int)message.min_squares; |
@@ -19,7 +19,6 | |||||
|
19 | Debug, |
|
19 | Debug, |
|
20 | Trace, |
|
20 | Trace, |
|
21 | Spy |
|
21 | Spy |
|
22 |
|
|||
|
23 | } |
|
22 | } |
|
24 | public class Logging |
|
23 | public class Logging |
|
25 | { |
|
24 | { |
@@ -160,6 +159,7 | |||||
|
160 | // string message = string.Format("{0} = {1}", |
|
159 | // string message = string.Format("{0} = {1}", |
|
161 | // value.ToString(), .ToString() ); |
|
160 | // value.ToString(), .ToString() ); |
|
162 | // var message = String.Join(", ", (object[])properties); |
|
161 | // var message = String.Join(", ", (object[])properties); |
|
|
162 | // | ||
|
163 |
|
163 | ||
|
164 | var properties = new List<string>(); |
|
164 | var properties = new List<string>(); |
|
165 |
|
165 |
@@ -165,6 +165,8 | |||||
|
165 | Logging.Debug("Test"); |
|
165 | Logging.Debug("Test"); |
|
166 | Logging.Trace("Test"); |
|
166 | Logging.Trace("Test"); |
|
167 |
|
167 | ||
|
|
168 | Logging.Spy(new {debugInfo.cameraPosition, debugInfo.updateTime, test = 9.0f /2}); | ||
|
|
169 | |||
|
168 | } |
|
170 | } |
|
169 | if (debugInfo.pastFps.Length >= 1) |
|
171 | if (debugInfo.pastFps.Length >= 1) |
|
170 | { |
|
172 | { |
You need to be logged in to leave comments.
Login now