Debugging
Jade provides a special method debug which displays the return-value of a method
on the standard (error) output stream.
It doesn't change the value, so you can include the method everywhere without
changing the programm run.
Because debug is not DSSSL-standard you have to include the method in the stylesheet:
(define debug
(external-procedure "UNREGISTERED::James Clark//Procedure::debug"))
Example
(element INGREDIENT
(literal (debug (data (current-node)))))
Problem
debug just displays primitive data-types like integer, strings and lists.
Debug displays just "#<unknown object ...>".
Solution 1
Use the debug function of mulberry tech.
This debug function displays the type of all objects which are
unknown to debug.
Solution 2
Use my debug function to displays the grove structure.
Index