Skip to content

Commit a788ba2

Browse files
committed
Add some debug info
1 parent c8f6dad commit a788ba2

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

WebUntisAPI.Client/Exceptions/WebUntisException.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Newtonsoft.Json;
22
using System;
33
using System.Collections.Generic;
4+
using System.Diagnostics;
45
using System.Linq;
56
using System.Runtime.Serialization;
67
using System.Text;
@@ -11,6 +12,7 @@ namespace WebUntisAPI.Client.Exceptions
1112
/// <summary>
1213
/// An error that the WebUntis server returned
1314
/// </summary>
15+
[DebuggerDisplay("Message = {Message}, Code = {Code}")]
1416
public class WebUntisException : Exception
1517
{
1618
/// <summary>

WebUntisAPI.Client/Models/School.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Newtonsoft.Json;
22
using System;
33
using System.Collections.Generic;
4+
using System.Diagnostics;
45
using System.Linq;
56
using System.Runtime.Serialization;
67
using System.Text;
@@ -11,6 +12,7 @@ namespace WebUntisAPI.Client.Models
1112
/// <summary>
1213
/// Represent a Untis school
1314
/// </summary>
15+
[DebuggerDisplay("Name = {DisplayName}, Id = {SchoolId}")]
1416
public struct School
1517
{
1618
/// <summary>

WebUntisAPI.Client/Models/Student.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Newtonsoft.Json;
22
using System;
33
using System.Collections.Generic;
4+
using System.Diagnostics;
45
using System.Linq;
56
using System.Text;
67
using System.Threading.Tasks;
@@ -10,6 +11,7 @@ namespace WebUntisAPI.Client.Models
1011
/// <summary>
1112
/// A student
1213
/// </summary>
14+
[DebuggerDisplay("Name = {ForeName} {LongName}")]
1315
public sealed class Student : IUser
1416
{
1517
/// <inheritdoc/>

0 commit comments

Comments
 (0)