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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidPrintStackTrace(org.bukkit.plugin.java.JavaPlugin caller) Prints the full stack trace of the current thread to the plugin's error log.
- 
Constructor Details- 
Debugpublic Debug()
 
- 
- 
Method Details- 
PrintStackTracepublic 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- JavaPlugininstance that is invoking this method. This is used to associate the log messages with the correct plugin.
 
 
-