Helma logo
helma.org » Home > Stories > res.debug()

res.debug()

Append any value to the output of the current page. All values written with res.debug() will appear as separate items at the bottom of the page. This assumes that the content type of the current request is text/html. Since items are simply appended to the full page, res.debug() will most likely break the well-fomedness of your page, but it is usually displayed properly.

Syntax
res.debug(value)

Transforms the passed argument to a string (only if necessary) and appends the result to the response debug buffer.

Example
var now = new Date();
res.debug("current time: " + now);

current time: Tue May 20 18:59:02 CEST 2003



Page last modified on 2003-05-20 20:15 by hns