Skip to main content

DebugFeature

Macro DebugFeature 

Source
macro_rules! DebugFeature {
    ($feature:literal, $($arg:tt)*) => { ... };
}
Expand description

Feature-gated debug logging — Perl’s Debug(...) if $LaTeXML::DEBUG{feature}. Usage: DebugFeature!("frontmatter", "FRONT Add {}", entry). Logs with the feature name as the log target (so output matches the previous log::debug!(target: "frontmatter", ...) form) and counts a Debug in the status report, like Debug!. NB deliberately does NOT forward to Debug! — its 3-expr (category, object, message) arm would mis-capture a format string with two arguments.