Package valorless.valorlessutils
Class Debug
java.lang.Object
valorless.valorlessutils.Debug
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
PrintStackTrace
(org.bukkit.plugin.java.JavaPlugin caller) Prints the full stack trace of the current thread 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
- TheJavaPlugin
instance that is invoking this method. This is used to associate the log messages with the correct plugin.
-