From: Pascal B. <pa...@dy...> - 2001-01-21 13:58:39
|
Played "abit" with Martin Ström 's console code, and got some nice ideas on how to enhance it. See the attached result. Unzip this package into a sub directory of your DynAPI code (eg. into the src/ directory), and add the following two lines to your code for some great debuggin tools: DynAPI.include('oversight.js','../src/oversight') and then in the DynAPI.onLoad, add the first line: Oversight.run('../src/oversight') where the '../src/oversight' is the path of your Oversight root folder. I haven't done much on errorhandling yet so be carefull, but currently you have the following tools: * Add watch Adds a property to the watcher.. the watcher will then display the value of that property. For example, try adding a watch for myLayer.x and make the layer dragable.. * Delete watch Deletes the property or variable from the watcher list.. no real need for this, every property will have a DEL link in the watcher window, to remove it.. saves typing * Dump object Dumps the specified object and it's properties/methods.. also creating dynamic hyperlinks for all child objects. * Show value Displays the value of the specified variable or property (not watching, just printin it once) * Execute code Will execute any code you type in it.. Basically this allows you to create DynLayer, move existing DynLayers/widgets, etc,etc,etc. I want to enhance the Execute code, so that it displays a memo field so in which you can type more lines at once.. making it a runtime editor. I think that when we create more of these types of tools, that the DynBuilder as described by Henrik is actually possible as a Webapplication. I've only tested this stuff on IE5 and NS4.. and works under both browsers perfectly. Let me know of any ideas, comments, flames, rock throwing, etc.. cya, Pascal Bestebroer pa...@dy... http://www.dynamic-core.net |