DbgCons demo - single page

If the console has not opened you may need to enable popups.

Last command executed:


put(msg) writes simple text to the console:


filter used for keys() and keys() below. For dump() filters can be nested; one filter for each recursion level (not shown here).
Sort:
Show functions
Write regular expressions to match property names against (example: /^[a-z]/):
Include:
Exclude:
Limit: (default=no limit (0))


dump(label, data, recurse, filter) dumps a data structure to the console, with data type indicators, and with configurable recursion, sorting and filtering (configure above).
Recursion level:
Dump some builtin's:
Dump something else:


keys(label, data, filter) is like dump, except it only dumps the keys, not the values, and is not recursive. Uses the filters above ("recursion level" and "show functions" are ignored).
Show some builtins' keys:
Show some other keys:


dom() dumps a DOM/XML tree structure, as markup rather than as a JS data structure. Pretty basic, no options or filters.
Show some DOM hierarchy:
Show some other hierarchy: