How to hit a breakpoint in classic ASP script running in Visual Studio 2015?

0

I am trying to debug a classic ASP application (written in VBScript) using Visual Studio 2015.

The page which is throwing the error is structured as follows :

 <% 
 :
 :
 class MyFile
 :
 :
 899 someObj.Open sSQL, connect
 :
 :
 %>

The page throws an error at the line above.

COM Error Number : -2147217900 (0x80040E14) 
File Name : /includes/MyFile.Class.asp 
Line Number : 899 
Brief Description : Invalid column name 'Column'.

But I cannot debug this. I tried the following

  • Putting "Stop" before the line -> Does not work. It just does not stop !
    • Debug breakpoint is not hit -> Tried running it from within Visual Studio
    • Debug breakpoint is not hit -> Tried running the page separately and attaching the VS debugger to IISExpress.

Any suggestions ? Is inline script debugging (this is not within javascript) supported at all ?

visual-studio
asp-classic
asked on Stack Overflow Jun 1, 2016 by user1554876 • edited Jun 1, 2016 by user1554876

1 Answer

1

Select your site in the IIS Management tool, Doubleclick "ASP" in the main window. Set "Send Errors To Browser" to True, enable client-side and server-side debugging as well.

If you have Visual Studio installed, and add a "STOP" instruction anywhere in the vbscript code, you should be able to select Visual Studio as the debugger.

IIS Management tool

answered on Stack Overflow Jun 2, 2016 by Erik Oosterwaal

User contributions licensed under CC BY-SA 3.0