How to Display Data Structures in ASP?

How to Display Data Structures in ASP?

am 30.01.2008 11:31:31 von joe

I'm writing a web application in plain ASP with VBScript, and I frequently
want to display the contents of a data structure that I've created, for
debugging purposes. In Perl, I can include a library called Data::Dumper
and add a couple of lines of code, and it will format for display any
arbitrarily complex data structure. Takes about 10 seconds to accomplish.
I've been unable to find anything for ASP that does the same or similar
thing. Does such a debugging tool exist? How do you look at your
complex data structures?

Thanks.

Re: How to Display Data Structures in ASP?

am 30.01.2008 14:14:33 von McKirahan

"Joe Williams" wrote in message
news:7mYnj.9608$EZ3.2865@nlpi070.nbdc.sbc.com...
> I'm writing a web application in plain ASP with VBScript, and I frequently
> want to display the contents of a data structure that I've created, for
> debugging purposes. In Perl, I can include a library called Data::Dumper
> and add a couple of lines of code, and it will format for display any
> arbitrarily complex data structure. Takes about 10 seconds to accomplish.
> I've been unable to find anything for ASP that does the same or similar
> thing. Does such a debugging tool exist? How do you look at your
> complex data structures?

Perhaps you're looking for ADOX.

Re: How to Display Data Structures in ASP?

am 30.01.2008 15:14:21 von reb01501

Joe Williams wrote:
> I'm writing a web application in plain ASP with VBScript, and I
> frequently want to display the contents of a data structure that I've
> created, for debugging purposes. In Perl, I can include a library
> called Data::Dumper and add a couple of lines of code, and it will
> format for display any arbitrarily complex data structure. Takes
> about 10 seconds to accomplish. I've been unable to find anything for
> ASP that does the same or similar thing. Does such a debugging tool
> exist? How do you look at your complex data structures?
>
By "data structures", I assume you are talking about classes or arrays,
not database structures.

Response.Write is it, unless you are using Visual Studio's debugger.

This might be helpful:
http://support.microsoft.com/kb/299986/EN-US/
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Re: How to Display Data Structures in ASP?

am 30.01.2008 18:11:57 von Jon Paal

I thought you could run perlscript from ASP if you have the ActiveX perlscript installed ..

http://www.4guysfromrolla.com/webtech/021100-1.shtml


"Joe Williams" wrote in message news:7mYnj.9608$EZ3.2865@nlpi070.nbdc.sbc.com...
> I'm writing a web application in plain ASP with VBScript, and I frequently
> want to display the contents of a data structure that I've created, for
> debugging purposes. In Perl, I can include a library called Data::Dumper
> and add a couple of lines of code, and it will format for display any
> arbitrarily complex data structure. Takes about 10 seconds to accomplish.
> I've been unable to find anything for ASP that does the same or similar
> thing. Does such a debugging tool exist? How do you look at your
> complex data structures?
>
> Thanks.