Detect-It-Easy/db/_debug
2024-11-13 15:59:13 +03:00

23 lines
No EOL
569 B
Text

// Debugging functions to help with development
// Author: DosX
// E-Mail: collab@kay-software.ru
// GitHub: https://github.com/DosX-dev
// Telegram: @DosX_dev
// Just a debug function
function _debug(messageText) {
_setResult("dev-output", messageText, "", "");
}
// Handle exceptions and log them
function _error(exceptionText) {
var exceptionText = "Error: " + exceptionText;
if (sName) {
exceptionText += ", last init() is '" + sName + "' with type '" + sType + "'";
}
_log("Exception: " + exceptionText);
throw exceptionText;
}