ASP equivalent of PHP print_r

Regular ASP, not .NET

I have a really large and complex class for creating a progress bar for a download , and I'm trying to figure out the downloaded file name. I think the easiest way to achieve this is to reset the structure of the variables, but even if it is not (and I appreciate if someone can point me out), I end up wondering about it, and the question is still here that is.

ASP has no equivalent, as far as I know, so I'm looking here for a complete home solution (as opposed to this this ) that can reset the entire structure of an object.

Thanks in advance for all the trouble of finding or even accepting it if you want. :)

+3
source share
2 answers

There is no such tool that I know about, but you can debug classic ASP using Visual Studio, set breakpoints and attach objects to test them, just like in .NET. I did this for record sets and simple value types, but I assume that it will also work for nested objects. You will need to install VS on the machine on which you are developing the site, and enable debugging in IIS for this.

+2
source

I looked at many ways to try this, but I could not do anything with classes because vbscript does not support introspection. However, in case this helps anyone who is trying to make print_r simpler with classic ASP. I managed to make a good way, just not with classes.

: http://tappetyclick.com/blog/2014/04/17/printr-function-classic-asp-vbscript#.U1eRSahdXnd

+4

Source: https://habr.com/ru/post/1758279/


All Articles