Anti Debugger
Protection ID: anti_debug
This protection prevents the application from being debugged or profiled.
This protection is available in the editions:
Startup Enterprise Admits © Smart Native Protection System
Parameters
This protection has no parameters or settings.
Rules configuration
shield.config.json
{
"protections": {
"anti_debug": {}
}
}
Configure it with the PlayGround
Modes
The configuration of the modes is only available in the enterprise edition.
Safe default : Detect a debugger or profiler using the managed API.
Win32 : Detect a debugger or profiler using the managed API. It is only compatible with the Microsoft Windows operating system.
© Smart native protection system : It uses native functions for detection and disables the use of the application.
Compatibility
Framework | Compatibility | Comments |
---|---|---|
.NET Core | ✔ | Automatic adaptation according to operating system. |
.NET Framework | ✔ | Using win32 APIs. |
.NET (up to 8 version) | ✔ | Automatic adaptation according to operating system. |
.NET Standard | ✔ | Automatic adaptation according to operating system. |
Xamarin IOS | ✔ | Automatic adaptation according to operating system. |
Xamarin Android | ✔ | Automatic adaptation according to operating system. |
Xamarin MacOs | ✔ | Automatic adaptation according to operating system. |
WPF | ✔ | |
Blazor | ✔ | |
.NET Maui | ✔ | |
Unity | ✔ | |
ASP | ✔ | |
Silverlight | ✔ | |
VBa (Visual Basic) or C# (CSharp) | ✔ | |
WinRT | ✔ |
Shield is compatible with all versions of .NET, it doesn't matter if you use .NET 2.0, .NET 4.7, .NET Core 2.1 or Xamarin.Forms 5.0, it will adapt automatically according to needs, you don't have to worry about this.