Skip to content

Commit

Permalink
some verbose debugging tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 21, 2019
1 parent 05635e6 commit de915f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Expand Up @@ -30,4 +30,9 @@ public ScriptEntryData getScriptEntryData() {
bsed.scriptEntry = entry;
return bsed;
}

@Override
public String toString() {
return "Context{player=" + player + ",npc=" + npc +",instant=" + instant + ",entry=" + entry + ",debug=" + debug + ",script=" + script + "}";
}
}
Expand Up @@ -172,6 +172,9 @@ public static void echoDebug(Debuggable caller, String message) {
return;
}
echo(ChatColor.LIGHT_PURPLE + " " + ChatColor.WHITE + trimMessage(message), caller);
if (net.aufdemrand.denizencore.utilities.debugging.dB.verbose && caller != null) {
echo(ChatColor.GRAY + "(Verbose) Caller = " + caller, caller);
}
}


Expand Down

0 comments on commit de915f7

Please sign in to comment.