Possible Duplicate:
How do you debug classic ASP?
This is pre-existing code. I'm just trying to get it working. No code critique is necessary, unless it's a bug that fixes the problem!
I set the breakpoint near the top of the first code block in this javascript method, but it's never hit.
function declareLogos() {
<% ' get logos
SQL = "SELECT l.LogoFileName, p.SortOrder FROM InrixCustomerLogo l join InrixCustomerLogoPage p on l.LogoCode = p.LogoCode WHERE p.PageFileName = '" & fn & "' AND SortOrder > 0 ORDER BY SortOrder"
On Error Resume Next
Set oLOGO = oConn.Execute(SQL)
logoerror = Err.Number
On Error Goto 0
x = 1 ' array counter
%>
<% If NOT logoerror Then %>
<% Do While NOT oLOGO.EOF %>
i[<% =x %>] = '<% =oLOGO("LogoFileName") %>';
<% oLOGO.MoveNext : x = x + 1 : Loop %>
<% End If %>
imax = <% =x-1 %>;
ilast = <% =(((x-1)*4)/4) %>; // <% =(((x-1)*4)/4) %> this is imax - 1 that is divisible by four
}
That looks like server side asp building a client side javascript function? if thats the case attatching your debugger to explorer.exe is useless (unless you want to debug the resulting JavaScript function - in which case F12 IE dev tools would be easier), you need to attach the debugger to Inetinfo.exe (the iis process running your server side asp) or Mtx.exe / w3wp.exe (depending on your configuration & iis version).
For more information please see the following msdn article:
http://msdn.microsoft.com/en-us/library/ms241740.aspx
And a similar article on VS2008 (should be a similar principle to 2012):
http://www.codeproject.com/Articles/28792/Debugging-Classic-ASP-VBScript-in-Visual-Studio-20
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With