FireFox has an extension called LeakMonitor. It is quite annoying for normal 
browsing but you can just enable/disable it.

Have you considered making an absolutely positioned DIV with overflow auto that 
can be shown/hidden with key commands for debug output? Just pipe your debug to 
a function and then you can just disable the output when you don't need it by 
editing the output function. Sprinkle debug statements throughout your code.

OR

You could take the modern approach and use FireFox and the Venkman extension 
with is a full debugger. Add the "debugger;" flag at the start of your script 
and step through. However, to use Venkman you will have to read the online 
manual/tutorial because it requires some non-intuitive setup (at least from the 
stand point of standard debuggers).

FireFox has a ton of web developer addons (besides just the plain old web 
developer). I suggest FireBug (lets you quickly see error output, css, events, 
and HTTP requests/responses for Ajax), console2, and Venkman for a good start.

For IE you have their beta web developer bar and the script debugger. The IE 
debugger is pretty useless and poorly implemented. I *think* it responds the 
"debugger;" command. In my honest opinion, I don't use IE to develop. It is 
strictly a testing browser to make sure my code works properly in IE.



-Andrew Martinez

 -----Original Message-----
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]  On Behalf Of Maninder, 
Singh
Sent:   Tuesday, June 06, 2006 9:01 AM
To:     [email protected]
Subject:        [Rails-spinoffs] Monitor Objects

Hi,

Sometimes (and I don't know when) I get a Stack Overflow at line 0 error.

I know that it could be due to -

1) Recursion
2) Lot of memory consumption by some object
3) Bad usage of iframes (I read it somewhere:)
4) Something else

Since it's not reproducible everytime, it's hard to debug.

So, I was wondering if using prototype, there is a way to build something like 
an object monitor to 
keep track of what all objects are currently there in memory and what have been 
destroyed?

Thoughts?

Thank you,
Mandy.

p.s. This is primarily for Internet Explorer.
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to