Search code examples
variablesasp-classicdump

ASP equivalent of PHP print_r


Plain old ASP, not .NET

I've got a really large and complicated class for making an upload progress bar and I'm trying to find out the uploaded file name. I think easiest way to accomplish that would be dumping the variable structure but, even if it isn't (and I appreciate if someone can point me), I've ended up wondering about it and the question here is still just that.

ASP doesn't have an equivalent as far as I know, so I'm looking here for a complete home made solution (unlike this one), which can dump the whole object structure.

Thanks in advance for all the trouble of finding or even making this, if you will. :)


Solution

  • There's no such tool that I know of, but you can debug classic ASP with Visual Studio, set breakpoints and hover over objects to inspect them like in .NET. I have done so for recordsets and simple value types, but I imagine it would also work for nested objects. You'll have to have VS installed on the machine you develop the site on, and enable debugging in IIS for this to work.