isdebug

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 4 Imported by: 0

README

isdebug

Go Reference Go Report Card GitHub license Made in Slovakia

isdebug is a little cross-platform debugger detection package for Go.

Features

  • Detects whether a debugger is present at runtime
  • Cross-platform support (Windows, macOS, Linux, BSD, Plan9, Android, iOS, etc...)
  • Lightweight and easy to use

Use Cases

  • Anti-debugging and reverse engineering protection
  • Game security and anti-cheat protection
  • Secure applications
  • Conditional debugging

Installation

Run:

go get -u github.com/MatusOllah/isdebug

Usage

package main

import (
    "fmt"
    "os"

    "github.com/MatusOllah/isdebug"
)

func main() {
    for {
        if isdebug.IsDebug() {
            fmt.Println("Debugger detected!")
            os.Exit(0)
        }
    }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDebug

func IsDebug() bool

IsDebug checks and returns true whether a debugger is present.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL