473,732 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ 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 1414

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******@geoci ties.comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.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******@geoci ties.comwrote in message
news:11******** *************@i 42g2000cwa.goog legroups.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
1988
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 interested in things like - usability - accessibility - CSS coding style
13
2935
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 keeps me in the windows/basic world. while i will agree that it has not evolved well, it does have one awesome feature that i have yet to see replicated in any linux product that i know about so far. i am a long time windows user and have had...
6
7342
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 agent could not be started to service a request, or was terminated as a result of a database system shutdown or a force command.
4
4618
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 "Unable to Start Debugging on the Web Server." I am on a standalone, non networked computer running XP Professonal and VS.net, and doing my development using VS.C#. I "think" I have gone through eveything listed in help for this error, but...
7
2435
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 center cluster that are each running a number of web applications. For some reason one of the boxes' asp_wp process keeps recylcing on us. It seems that the memory just grows and grows and then recycles on us. I cam across and have read the...
3
5715
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 by visual studio. What I do not understand, however, is that sometimes (say 1% of all calls) are being executed twice on the server side. I notice that because each call makes an entry in the database. This problem has been around as long as...
7
2322
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 applied, which are ignored, which are inherited or not, which are superceded, etc. This would be a huge aid in debugging pages. (I currently have a page that is included by another page - it's actually a menu - but it's rendered differently...
6
3849
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 occurred on sending debug HTTP request. Make sure the server is operating correctly. Verify there is no syntax errors in the web.config by doing a debug.start without debugging. You may also want to refer to the ASP.NET and ATL Server debugging...
5
1830
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 recently migrated my app using ------------------------------------------------------------- %systemroot%\system32\inetsrv\APPCMD.EXE migrate config "Default Web Site/YourApp" -------------------------------------------------------------
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9447
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9181
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.