Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Debugger.cs
Go to the documentation of this file.
3
4namespace System.Diagnostics;
5
6public static class Debugger
7{
11
12 public static readonly string? DefaultCategory;
13
14 public static extern bool IsAttached
15 {
16 [MethodImpl(MethodImplOptions.InternalCall)]
17 get;
18 }
19
20 [MethodImpl(MethodImplOptions.NoInlining)]
21 public static void Break()
22 {
24 }
25
26 [MethodImpl(MethodImplOptions.InternalCall)]
27 private static extern void BreakInternal();
28
29 public static bool Launch()
30 {
31 if (!IsAttached)
32 {
33 return LaunchInternal();
34 }
35 return true;
36 }
37
38 [MethodImpl(MethodImplOptions.NoInlining)]
43
44 public static void NotifyOfCrossThreadDependency()
45 {
46 if (IsAttached)
47 {
49 }
50 }
51
52 [DllImport("QCall", CharSet = CharSet.Unicode)]
53 private static extern bool LaunchInternal();
54
55 public static void Log(int level, string? category, string? message)
56 {
57 LogInternal(level, category, message);
58 }
59
60 [DllImport("QCall", CharSet = CharSet.Unicode)]
61 private static extern void LogInternal(int level, string category, string message);
62
63 [MethodImpl(MethodImplOptions.InternalCall)]
64 public static extern bool IsLogging();
65
66 [MethodImpl(MethodImplOptions.InternalCall)]
67 private static extern void CustomNotification(ICustomDebuggerNotification data);
68}
static void LogInternal(int level, string category, string message)
static void Log(int level, string? category, string? message)
Definition Debugger.cs:55
static bool LaunchInternal()
static void NotifyOfCrossThreadDependencySlow()
Definition Debugger.cs:39
static readonly? string DefaultCategory
Definition Debugger.cs:12
static void NotifyOfCrossThreadDependency()
Definition Debugger.cs:44
static void CustomNotification(ICustomDebuggerNotification data)