How do I debug a page in ASP.NET? I have an IIS server that I am trying to add a new page to and when I am running the ASP on the server I get a really short and nondescript error message
Microsoft OLE DB Provider for SQL Server error '80040e14'
Incorrect syntax near '='.
/forms/test.asp, line 52
Line 52 is:
Set RS = Conn.Execute(SQL)
Where 'SQL' is a SQL query statement set a few lines earlier. I have checked that statement over and over I am confident that the syntax of the query is solid as a nearly identical query runs without a hitch earlier in the page and other pages run the same thing. I have been working for a while now to try to find the bug with no success.
I am new to ASP and working in an IIS environment. I usually work with Java in which I have a stack trace to gather information and can use console output to track data to help with the debugging process. This is all absent in ASP.
So, what methods can I use to track this bug and solve it? I know I list a specific example here but I really need a general technique I can use to debug ASP. Can I print to a console somewhere to track variable values? Can I send that information out in a popup so I can see what the data looks like before the error? Is there some way to get a more detailed description about what happens on execution so I can track where I am going wrong?
Thank you for your help!
EDIT
The SQL Statement is:
SQL = "SELECT firstname,lastname FROM clientinfo WHERE [ClientID] = " & Request("ID")
Even if we can solve this problem though, is there some technique to debug ASP easier?