Re: [OT Ann] Debugging Toolset: Dumper, Timer, Logger

2006-09-30 Thread James Holmes
I should have mentioned that MXAJAX actually includes DP_Debug as part
of its download - I dropped in the new version and all worked well.
It's been really useful for the articles I'm writing.

On 9/26/06, Jim Davis [EMAIL PROTECTED] wrote:
  -Original Message-
  From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 25, 2006 9:41 AM
  To: CF-Talk
  Subject: RE: [OT Ann] Debugging Toolset: Dumper, Timer, Logger
 
  Jim,
 
  Just curious, but why did you decide to extend Object instead of just
  creating a custom static debugging object?

 Mostly because I forgot to switch it.  ;^)

 The original library was designed to be a Static member of Object or (using
 another method) added directly to the Object prototype.

 This gave you some nice abilities, for example you could chain method calls:

 MyArray.dpDump().split().dpDump()

 Also with it added as a static method to Object there's really no footprint
 on the page - no new variables added.

 But in the end it makes more sense to create a single global to hold
 everything (as I've done with my other libraries recently).

 So I did.  The version now available for download places everything into a
 DP_Debug object and doesn't modify the base JavaScript Object at all.

 Jim Davis


 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254893
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: [OT Ann] Debugging Toolset: Dumper, Timer, Logger

2006-09-25 Thread Robertson-Ravo, Neil (RX)
Great work Jim.





This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions. 
Visit our website at http://www.reedexpo.com

-Original Message-
From: Jim Davis
To: CF-Talk
Sent: Mon Sep 25 03:29:27 2006
Subject: [OT Ann] Debugging Toolset: Dumper, Timer, Logger

I've completed a new version of my Debugging library.  The library, complete

documentation and working examples are here:

http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_D
ebug

The library has been tested in IE 6 and 7, FireFox 1.5 and Opera 9.

The library features:

+) A Dump tool (think CFDUMP for JavaScript) which presents an HTML
represetation of any JavaScript 
Object/value.  It supports circular references, system objects and variable 
recursion depths.  Shortcut methods are provided to display currently 
accessible browser cookies and query string variables.

+) A Timer tool which lets you place named timers around arbitrary blocks 
of code.

+) A Logger tool which lets you write typed messages to a logging console.

The console offers quick reference material for all methods, the ability to 
filter log types and (for IE) cross-referencing of objects and dump log 
results.

The tools are added as Static methods of Object.  The library is pure 
JavaSript (no install).

I'm eager to know what you think.  I'm not as eager to hear about problems 
or bugs you find... but I'm still very interested.

Jim Davis




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254013
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: [OT Ann] Debugging Toolset: Dumper, Timer, Logger

2006-09-25 Thread Dan G. Switzer, II
Jim,

Just curious, but why did you decide to extend Object instead of just
creating a custom static debugging object?

Like:

Debugger.dump();
Debugger.log();
Debugger.timer();
 etc ...

-Dan

-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 24, 2006 10:29 PM
To: CF-Talk
Subject: [OT Ann] Debugging Toolset: Dumper, Timer, Logger

I've completed a new version of my Debugging library.  The library,
complete

documentation and working examples are here:

http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_
D
ebug

The library has been tested in IE 6 and 7, FireFox 1.5 and Opera 9.

The library features:

+) A Dump tool (think CFDUMP for JavaScript) which presents an HTML
represetation of any JavaScript
Object/value.  It supports circular references, system objects and variable
recursion depths.  Shortcut methods are provided to display currently
accessible browser cookies and query string variables.

+) A Timer tool which lets you place named timers around arbitrary blocks
of code.

+) A Logger tool which lets you write typed messages to a logging
console.

The console offers quick reference material for all methods, the ability to
filter log types and (for IE) cross-referencing of objects and dump log
results.

The tools are added as Static methods of Object.  The library is pure
JavaSript (no install).

I'm eager to know what you think.  I'm not as eager to hear about problems
or bugs you find... but I'm still very interested.

Jim Davis




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254026
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: [OT Ann] Debugging Toolset: Dumper, Timer, Logger

2006-09-25 Thread Jim Davis
 -Original Message-
 From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 25, 2006 9:41 AM
 To: CF-Talk
 Subject: RE: [OT Ann] Debugging Toolset: Dumper, Timer, Logger
 
 Jim,
 
 Just curious, but why did you decide to extend Object instead of just
 creating a custom static debugging object?

Mostly because I forgot to switch it.  ;^)

The original library was designed to be a Static member of Object or (using
another method) added directly to the Object prototype.

This gave you some nice abilities, for example you could chain method calls:

MyArray.dpDump().split().dpDump()

Also with it added as a static method to Object there's really no footprint
on the page - no new variables added.

But in the end it makes more sense to create a single global to hold
everything (as I've done with my other libraries recently).

So I did.  The version now available for download places everything into a
DP_Debug object and doesn't modify the base JavaScript Object at all.

Jim Davis


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254165
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: [OT Ann] Debugging Toolset: Dumper, Timer, Logger

2006-09-24 Thread James Holmes
I'm about to embark on a full exploration of the MXAJAX mxData tag
return types, so the debugger is going to be very handy. Thanks for
your work.

On 9/25/06, Jim Davis [EMAIL PROTECTED] wrote:
 I've completed a new version of my Debugging library.  The library, complete

 documentation and working examples are here:

 http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_D
 ebug

 The library has been tested in IE 6 and 7, FireFox 1.5 and Opera 9.

-- 
CFAJAX docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254008
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4