Search code examples
debuggingasp-classicgetlasterror

What is returned by Server.GetLastError in Classic ASP?


I would like to know what kind of object is returned in Classic ASP by the function Server.GetLastError.

If this were a .net or JavaScript function, I would simply attach a debugger and see what is returned, but I don't have any tools to do that with Classic ASP code in the environment I work in.


Solution

  • From MSDN:

    The GetLastError method returns an ASPError Object describing the error condition that occurred. This method is available only before the .asp file has sent any content to the client.