About: Dump Object Contents to Debug Window   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

A useful feature of Konfabulator's debug window is the ability to write the contents of an object to the Window. Typing the following command in the debug window enumerates every property and method of the specified object. /dump obj function dump (obj, includeFunctions) { print('Object'); for (key in obj) { var thisObj = obj[key]; if (typeof(thisObj)') != 'function' || includeFunctions == true) { print(' object[' + a + ']: ' + thisObj)); } } }

AttributesValues
rdfs:label
  • Dump Object Contents to Debug Window
rdfs:comment
  • A useful feature of Konfabulator's debug window is the ability to write the contents of an object to the Window. Typing the following command in the debug window enumerates every property and method of the specified object. /dump obj function dump (obj, includeFunctions) { print('Object'); for (key in obj) { var thisObj = obj[key]; if (typeof(thisObj)') != 'function' || includeFunctions == true) { print(' object[' + a + ']: ' + thisObj)); } } }
dcterms:subject
abstract
  • A useful feature of Konfabulator's debug window is the ability to write the contents of an object to the Window. Typing the following command in the debug window enumerates every property and method of the specified object. /dump obj However, sometimes it is nice to be able to achieve the same effect through JavaScript; if for example you are debugging a Widget and you always want to see the contents of an object at a particular point, this function provides (nearly) the same functionality as the /dump command. The only difference is that where the /dump command writes the actual name of the object to the debug window, this function writes "object". One useful thing about it is that you can specify an optional second argument, includeFunctions (false by default). If you don't want functions to be shown (which you probably won't), just leave this argument out. function dump (obj, includeFunctions) { print('Object'); for (key in obj) { var thisObj = obj[key]; if (typeof(thisObj)') != 'function' || includeFunctions == true) { print(' object[' + a + ']: ' + thisObj)); } } }
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software