75 lines
2.9 KiB
C#
75 lines
2.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Diagnostics
|
|
{
|
|
/// <summary>Enables communication with a debugger. This class cannot be inherited.</summary>
|
|
// Token: 0x02000621 RID: 1569
|
|
[Token(Token = "0x2000621")]
|
|
[MonoTODO]
|
|
[ComVisible(true)]
|
|
[MonoTODO("The Debugger class is not functional")]
|
|
public sealed class Debugger
|
|
{
|
|
/// <summary>Gets a value that indicates whether a debugger is attached to the process.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if a debugger is attached; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000769 RID: 1897
|
|
// (get) Token: 0x06002F6B RID: 12139 RVA: 0x00018C48 File Offset: 0x00016E48
|
|
[Token(Token = "0x17000769")]
|
|
public static bool IsAttached
|
|
{
|
|
[Token(Token = "0x6002F6B")]
|
|
[Address(RVA = "0x1B657E0", Offset = "0x1B645E0", VA = "0x181B657E0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002F6C RID: 12140 RVA: 0x00018C60 File Offset: 0x00016E60
|
|
[Token(Token = "0x6002F6C")]
|
|
[Address(RVA = "0x1B65770", Offset = "0x1B64570", VA = "0x181B65770")]
|
|
private static bool IsAttached_internal()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Checks to see if logging is enabled by an attached debugger.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if a debugger is attached and logging is enabled; otherwise, <see langword="false" />. The attached debugger is the registered managed debugger in the <see langword="DbgManagedDebugger" /> registry key. For more information on this key, see Enabling JIT-Attach Debugging.</returns>
|
|
// Token: 0x06002F6D RID: 12141 RVA: 0x00018C78 File Offset: 0x00016E78
|
|
[Token(Token = "0x6002F6D")]
|
|
[Address(RVA = "0x1B65780", Offset = "0x1B64580", VA = "0x181B65780")]
|
|
public static bool IsLogging()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Posts a message for the attached debugger.</summary>
|
|
/// <param name="level">A description of the importance of the message.</param>
|
|
/// <param name="category">The category of the message.</param>
|
|
/// <param name="message">The message to show.</param>
|
|
// Token: 0x06002F6E RID: 12142 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002F6E")]
|
|
[Address(RVA = "0x1B65790", Offset = "0x1B64590", VA = "0x181B65790")]
|
|
public static void Log(int level, string category, string message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Notifies a debugger that execution is about to enter a path that involves a cross-thread dependency.</summary>
|
|
// Token: 0x06002F6F RID: 12143 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002F6F")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
|
|
public static void NotifyOfCrossThreadDependency()
|
|
{
|
|
}
|
|
|
|
/// <summary>Represents the default category of message with a constant.</summary>
|
|
// Token: 0x04001A68 RID: 6760
|
|
[Token(Token = "0x4001A68")]
|
|
public static readonly string DefaultCategory;
|
|
}
|
|
}
|