473,466 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Request for Comments: Updated Debugging/Dump Tool

I've been working on a new release of my "debug" library. The original
allowed the developer to "dump" complex objects (even those with circular
references) to the screen for review. This version adds many features:

+) A simplified "log" method for writing arbitrary information to a log
window.
+) A simple "timer" method which can be used to time blocks of code.
+) Simplified methods for dumping currently available cookies and query
string values.
+) Several HTML updates/optimizations (the tool no longer uses frames for
example).

A test page is here (note that the debug console opens in a popup window -
blockers may prevent this of course):

http://www.depressedpress.com/test/d...&test1=newtesy

Feel free to examine the source (the test page source is a little ugly, but
the source of the component itself should be clean at this point.)

Currently it's been tested in FF and IE (6 and 7). The last tie I tried
Opera it didn't work... but I've not tried the new version of Opera. There
are slight differences between FF and IE (Firefox, for example, will not
acknowledge local links in generated content while IE has some cosmetic
vertical scrolling issues).

The roughest part (and the newest) is the "dpLog" section - it's presentable
but I hope to improve it considerably before release.

I'm open to any bugs or criticisms (or feature requests) at this point.

Please note that this tool is not intended to replace more integrated tools
like the fabulous FireBug. Instead I would like to think that it could
compliment them. Since IE doesn't have a FireBug equivalent I find the this
tool much more useful on that platform in general, although I use it
extensively in FireFox as well.

The original library, for comparison, is here:

http://www.depressedpress.com/Conten...eBug/Index.cfm

Of course this new version, like the last, will be open-sourced under the
very liberal BSD license and free.

Thanks in advance,

Jim Davis
Sep 17 '06 #1
4 1400

Jim Davis wrote:
I've been working on a new release of my "debug" library. The original
allowed the developer to "dump" complex objects (even those with circular
references) to the screen for review. This version adds many features:

+) A simplified "log" method for writing arbitrary information to a log
window.
+) A simple "timer" method which can be used to time blocks of code.
+) Simplified methods for dumping currently available cookies and query
string values.
+) Several HTML updates/optimizations (the tool no longer uses frames for
example).
I'm having trouble keeping up with all the innovation in the Javascript
space. I have not been able to test all the debuggers I've heard about.
Could you tell me why I should try yours, as opposed to just sticking
with the FireFox extension I've got now, or Venkman?

Sep 18 '06 #2

"Jake Barnes" <lk******@geocities.comwrote in message
news:11**********************@d34g2000cwd.googlegr oups.com...
>
Jim Davis wrote:
>I've been working on a new release of my "debug" library. The original
allowed the developer to "dump" complex objects (even those with circular
references) to the screen for review. This version adds many features:

+) A simplified "log" method for writing arbitrary information to a log
window.
+) A simple "timer" method which can be used to time blocks of code.
+) Simplified methods for dumping currently available cookies and query
string values.
+) Several HTML updates/optimizations (the tool no longer uses frames for
example).

I'm having trouble keeping up with all the innovation in the Javascript
space. I have not been able to test all the debuggers I've heard about.
Could you tell me why I should try yours, as opposed to just sticking
with the FireFox extension I've got now, or Venkman?
It's a bit unfair to compare this tool with tools like Firebug orVenkman -
they are both VERY good tools (I highly recommend both) but they are browser
extensions - they require an install. Don't get me wrong - for that install
you get extremely useful tools which offer much more power than mine (as
they are able to go "under the covers" of the host browser and provide
functionality impossible in "vanilla" JavaScript) - but you do need to have
an install. My tool will work with no install (although pop-up windows must
be allowed from the site).

My tool also works in IE. While it's not as functional as a FireBug or
Venkman neither of those tools provide any functionality for IE.

My tool offers an easy way to examine complex data structures. I think,
pridefully perhaps, that it's one of the best implementations in this arena:
my tool doesn't choke on cicular references, allows the developer to set
levels of recursion and doesn't choke on odd browser objects which claim to
be objects but can't be enumerated.

This new version adds simple methods to examine available cookies and query
string variables, log messages to a console and time blocks of code.

It WILL NOT replace a good integrated debugger like FireBug - and it's not
trying to. I'm essentially trying to pack as much useful functionality into
plain-vanilla browser script. It's missing features because of this but it
also has its strengths because of this.

(It can be easily argued that my tool is NOT a debugger in the traditional
sense: it doesn't offer breaks, step-through or tracing capabilities for
example. I simply couldn't come up with a better label.)

As I've said - there's no install here and no download (unless you want to
use it on your own pages) - just go to the page and you'll see the console.
The in-progress work on the new version is here:

http://www.depressedpress.com/test/d...&test1=newtesy

Jim Davis
Sep 18 '06 #3

Jim Davis wrote:
It's a bit unfair to compare this tool with tools like Firebug orVenkman -
they are both VERY good tools (I highly recommend both) but they are browser
extensions - they require an install. Don't get me wrong - for that install
you get extremely useful tools which offer much more power than mine (as
they are able to go "under the covers" of the host browser and provide
functionality impossible in "vanilla" JavaScript) - but you do need to have
an install. My tool will work with no install (although pop-up windows must
be allowed from the site).

My tool also works in IE. While it's not as functional as a FireBug or
Venkman neither of those tools provide any functionality for IE.

My tool offers an easy way to examine complex data structures. I think,
pridefully perhaps, that it's one of the best implementations in this arena:
my tool doesn't choke on cicular references, allows the developer to set
levels of recursion and doesn't choke on odd browser objects which claim to
be objects but can't be enumerated.

This new version adds simple methods to examine available cookies and query
string variables, log messages to a console and time blocks of code.

It WILL NOT replace a good integrated debugger like FireBug - and it's not
trying to. I'm essentially trying to pack as much useful functionality into
plain-vanilla browser script. It's missing features because of this but it
also has its strengths because of this.

It certainly looks interesting. Are you serious about it? Will you get
others on board? Are you releasing it under an open source license?
Will you be offering tutorials?

I see a lot of stuff about logging. Any reason not to just use JsUnit?
I am impressed that this is a way to get some debugging done in IE.
Debugging IE drives me insane. Also Safari, I imagine.

Sep 19 '06 #4

"Jake Barnes" <lk******@geocities.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
It certainly looks interesting. Are you serious about it? Will you get
others on board? Are you releasing it under an open source license?
Will you be offering tutorials?
Lemme see... in order:

1) As serious as I get about anything else I suppose.

2) So far nobody else has offered to come on board - but I'll happily accept
any help offered.

3) It will be released under the same (very liberal) BSD license that the
current version is under.

4) The documentation for the current version will be updated to reflect the
changes. It features examples and full documentation. Here's that page:

http://www.depressedpress.com/Conten...ions/DP_Debug/

The same style of documentation, example and license will be used for this
updated version.
I see a lot of stuff about logging. Any reason not to just use JsUnit?
Nope. If you've already got something that does what this does and like it
then there's no reason I can see to switch.

Although in this case JSUnit seems specifically suited to unit testing and
seems very tilted towards those that already have experience with JUnit.
I am impressed that this is a way to get some debugging done in IE.
Debugging IE drives me insane. Also Safari, I imagine.
I've no way to test this in Safari so I can't say for sure but I hope it
works - I've made every attempt to standardize the code (there's only one
browser-specific check to get around a really annoying bug in FireFox).

Jim Davis
Sep 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Florian Brucker | last post by:
Hi! With the help of this group I finally managed to transfer my website from table layout to CSS layout. The site is now online and I would really appreciate comments about it. I'm...
13
by: python | last post by:
hello and thanks for reading this, i have been a dos/windows user using some form of the basic language for 30 years now. i own and run a small programming company and there is one feature that...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
4
by: Bruce A. Julseth | last post by:
This is my 2nd request. Is the question too vague? Or, too difficult to answer. I'm really a newbie at this VS.NET stuff and do appreciate some help on this problem.---I keep getting the error...
7
by: Rich Denis | last post by:
Hello, I have been trying to solve a mysterious memory leak problem and was hoping that you could help me out on my stuck point. First a bit of background. We have two app servers in an app...
3
by: Ed Sonneveld | last post by:
Hi, I have hosted my webservice at a hosting company and it has been working fine for 2 years now. The webservice is called by winforms clients over the internet, using the proxy class generated...
7
by: ab3331 | last post by:
I need a tool that acts like a browser, but instead of actually rendering a page, it explains in English exactly what rules it's interpreting. This would make it simple to see which rules are...
6
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I'm running VS 2003/ASP.NET 1.1.4322.0 on XP SP2 All of a sudden I started to getting... "Error while trying to run project: Unable to start debugging on the web server. Server side-error...
5
by: Rory Becker | last post by:
I have had code in my Application_Start which is intended to run once at the start of my application's life. It loads connection information and similar from a known location. However I...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.