Date: 06/15/05 (Javascript Community) Keywords: no keywords Hello again... I'm back for round 2. Before my other post starts to get off topic, I thought I'd start a new one... on debugging JS. What are your thoughts? Anyone have some tips or tricks? You can now program your JS in the context of the page you're viewing! For example, you could dynamically change the styles on the page using the DOM, or you could alter the values of variables, or even redefine functions. You could enter an entire snippet of JS, provided it is in the right format, and debug it on the fly. Examples... type in the box: alert('hi'); // and you get an alert! myVar01 = 'hi'; // you've just declared a new global var alert(myVar01); myNewFunc = function(str){alert(str);} // new global func! myNewFunc('hello world'); // that you can call right away this.myNewFunc; // and retrieve the definition of! Too cool for me. I noticed that in the memories for this journal, someone had posted their own JS console, I'm curious if it was anything like this... but the link is dead now. Thoughts? Source: http://www.livejournal.com/community/javascript/69401.html
|