From: martin s. <ma...@ab...> - 2001-01-18 21:07:25
|
well, i didn't really mean this to be an advanced debugging-utility, but while i have used it on my=20 own for a pretty long time and found it very useful=20 I just thought it could be helpful for you others aswell... maybe we should merge debug.js and console.js into a single debugutils.js file with all debug-utilities? (until we have a real debugger something like described below) /martin ----- Original Message -----=20 From: "Pascal Bestebroer" <pa...@dy...> To: <dyn...@li...> Sent: Thursday, January 18, 2001 7:10 PM Subject: RE: [Dynapi-Dev] small DynAPI-util: console > honestly, haven't looked at it yet.. but I think an enhanced thing = like this > should be made > so that it can also be used for test-cases. I know there was a = debug.js file > once (a long time ago) > but I think something that works more like the netscape js console, = with > maybe hyperlinks to show > the functions, which popped the error, code or something would be a = great > thing to have. >=20 >=20 > Pascal Bestebroer > pa...@dy... > http://www.dynamic-core.net >=20 > > -----Oorspronkelijk bericht----- > > Van: dyn...@li... > > [mailto:dyn...@li...]Namens Jordi = 'IlMaestro' > > Ministral > > Verzonden: donderdag 18 januari 2001 17:59 > > Aan: dyn...@li... > > Onderwerp: Re: [Dynapi-Dev] small DynAPI-util: console > > > > > > Absolutely. I propose it is made available via CVS. > > > > Robert Rainwater wrote: > > > > > Nice. It would be even better if it had a dumpProperties > > method, that could > > > dump all of the properties of an object. > > > > > > Like: > > > DynAPI.console.dumpProperties(myLayer); > > > > > > -- > > > // Robert Rainwater > > > > > > On 1/18/2001, 11:37:25 AM EST, martin wrote about "[Dynapi-Dev] > > small DynAPI-util: console": > > > > > > > i've been using a js-console for a while and > > > > found it useful so i thought i'll ported it to DynAPI > > > > and share it with you. > > > > > > > with the console you get a small popup-window > > > > to which you are able to write variables, messages > > > > and so on. very usefull instead of those alert's > > > > > > > put the console.js in dynapi/util/ > > > > > > > methods: > > > > > > > DynAPI.console.open() > > > > opens the console-window > > > > > > > DynAPI.console.write(msg) > > > > writes msg to the console > > > > if the console isn't opened, this will be done for you. > > > > internet explorer will also scroll to the bottom of the console > > > > where the newest messages are, couldn't found out how > > > > you do this in netscape > > > > > > > DynAPI.console.close() > > > > closes the console-window > > > > > > > DynAPI.console.enable() > > > > enables the console > > > > > > > DynAPI.console.disable() > > > > disables the console (the console wont open or be written to) > > > > > > > DynAPI.console.clear() > > > > clears the console window > > > > > > > example: > > > > > > > DynAPI.setLibraryPath('dynapi/src/lib') > > > > DynAPI.include('dynapi.api.*') > > > > DynAPI.include('dynapi.util.console') > > > > > > > DynAPI.onLoad=3Dfunction() { > > > > layer =3D new DynLayer(null,40,10,25,50,'red'); > > > > DynAPI.document.addChild(layer); > > > > > > > DynAPI.console.write(layer.toString()); > > > > DynAPI.console.write('position: '+layer.x+'x'+layer.y); > > > > DynAPI.console.write('size: '+layer.w+'x'+layer.h); > > > > }; > > > > > > > (leave the console open when you reload the > > > > page, then the console-window's position and > > > > size will remain) > > > > > > > cheers > > > > /martin > > > > > > _______________________________________________ > > > Dynapi-Dev mailing list > > > Dyn...@li... > > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > > > > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > >=20 >=20 > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev |