Search code examples
debuggingasp-classicwhile-loopconsole.log

Using console.log for debugging with Classic ASP


I am looking at an a webpage written in classic ASP and I am in the middle of a 'while' statement. I want to use the Chrome Developer tools to debug the values on my page. I tried inserting

console.log(value);

which works with C# applications, but it threw a Expected end of statement at the console.log line I inserted.

I am just looking for a quick tip on how use the debugger with classic asp?


Solution

  • You would need to Response.Write a script block with the console.log statement. Assuming the ASP page outputs html.