Class Debug

java.lang.Object
valorless.valorlessutils.Debug

public class Debug extends Object
Utility class for debugging purposes.

Provides helper methods to assist in logging and tracking issues within plugins. Currently, it allows printing the current thread's stack trace to the plugin's error log.

  • Constructor Details

    • Debug

      public Debug()
  • Method Details

    • PrintStackTrace

      public static void PrintStackTrace(org.bukkit.plugin.java.JavaPlugin caller)
      Prints the full stack trace of the current thread to the plugin's error log.

      Each element of the stack trace is logged individually using ValorlessUtils.Log.Error(JavaPlugin, String). This can be useful for diagnosing the source of unexpected behavior in a plugin.

      Parameters:
      caller - The JavaPlugin instance that is invoking this method. This is used to associate the log messages with the correct plugin.