Files
Dec2017-Script-Dump/mscorlib/System/Diagnostics/Debugger.cs
T
2026-06-04 11:42:34 +02:00

81 lines
3.5 KiB
C#

using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace System.Diagnostics
{
/// <summary>Enables communication with a debugger. This class cannot be inherited.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x0200015C RID: 348
[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>true if a debugger is attached; otherwise, false.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x170002EB RID: 747
// (get) Token: 0x0600112F RID: 4399 RVA: 0x00045024 File Offset: 0x00043224
public static bool IsAttached
{
get
{
return Debugger.IsAttached_internal();
}
}
// Token: 0x06001130 RID: 4400
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern bool IsAttached_internal();
/// <summary>Signals a breakpoint to an attached debugger.</summary>
/// <exception cref="T:System.Security.SecurityException">The <see cref="T:System.Security.Permissions.UIPermission" /> is not set to break into the debugger. </exception>
/// <filterpriority>1</filterpriority>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
/// </PermissionSet>
// Token: 0x06001131 RID: 4401 RVA: 0x0004502C File Offset: 0x0004322C
public static void Break()
{
}
/// <summary>Checks to see if logging is enabled by an attached debugger.</summary>
/// <returns>true if a debugger is attached and logging is enabled; otherwise, false. The attached debugger is the registered managed debugger in the DbgManagedDebugger registry key. For more information on this key, see Enabling JIT-attach Debugging.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x06001132 RID: 4402 RVA: 0x00045030 File Offset: 0x00043230
public static bool IsLogging()
{
return false;
}
/// <summary>Launches and attaches a debugger to the process.</summary>
/// <returns>true if the startup is successful or if the debugger is already attached; otherwise, false.</returns>
/// <exception cref="T:System.Security.SecurityException">The <see cref="T:System.Security.Permissions.UIPermission" /> is not set to start the debugger. </exception>
/// <filterpriority>1</filterpriority>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
/// </PermissionSet>
// Token: 0x06001133 RID: 4403 RVA: 0x00045034 File Offset: 0x00043234
[MonoTODO("Not implemented")]
public static bool Launch()
{
throw new NotImplementedException();
}
/// <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>
/// <filterpriority>1</filterpriority>
// Token: 0x06001134 RID: 4404 RVA: 0x0004503C File Offset: 0x0004323C
public static void Log(int level, string category, string message)
{
}
/// <summary>Represents the default category of message with a constant.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x04000441 RID: 1089
public static readonly string DefaultCategory = string.Empty;
}
}