Best way to inspect the contents of a big variable?

"Paul Rempel" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hi,
I'm using Venkman and find it incredibly useful.  But i'm not sure how to
"see" what is inside of certain variables that contain a lot of data.

For example, my web page uses javascript to pupulate a <div> tag.  I can't
see whats in it by using View-->Source since it only exists in memory.

I put a breakpoint in my .js file using Venkman, and then in the debugger
console, I type:

document.getElementById("apis").innerHTML

but it doesn't show me the contents, it only says:

 $[0] = [string] 73078 characters

What if i want to see what those 73078 characters actually are????  Adding
it as a watch produces the same problem.


I tried sending it to an alert() dialog box, but it doesn't all fit and you
can't copy and paste from those dialog boxes either.


Any ideas???

Thanks in advance,
Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.