Another way to debug ASP Classic (VBScript) other than the attach process using Visual Studio

Are there any other tools for debugging an ASP Classic application using Visual Studio?

Now I have a classic ASP application and I use IIS 5 from WinXP. I am debugging an ASP application right now by adding DLLHOST.EXE from (Debug> Attach Process) in Visual Studio 2005.

This works fine, but sometimes when debugging, the line in which I am debugging is shifted. In addition, it becomes very tedious to repeat the Attach Tool process over and over again.

I have an old Visual Studio 6.0 interdev, can it make the F5-style seamless debugging that I can do in ASP.NET?

Actually, what annoys me when debugging with Visual Studio 2005, I need to attach dllhost.exe every time when debugging.

+3
source share
3 answers

You can make a macro in VS2005 to do this.

http://blogs.msdn.com/jimgries/archive/2005/11/30/498264.aspx

Contains an example of joining a Calc process.

Sub AttachToCalc()
       Try

              Dim dbg2 As EnvDTE80.Debugger2 = DTE.Debugger
              Dim trans As EnvDTE80.Transport = dbg2.Transports.Item("Default")
              Dim dbgeng(1) As EnvDTE80.Engine

              dbgeng(0) = trans.Engines.Item("Native")

              Dim proc2 As EnvDTE80.Process2 = dbg2.GetProcesses(trans, "JIMSMACHINE").Item("calc.exe")

              proc2.Attach2(dbgeng)

       Catch ex As System.Exception
              MsgBox(ex.Message)
       End Try

End Sub
+3
source

I find it tiring and to the point that I do not. However, try using only your keyboard to open the website and connect to the process, for me this makes it much less tedious.

If I remember correctly for my environment ... Alt + F E (open website) Login Ctrl + Alt + P (Attach to process) D (to select the DLL node) Login Enter

+2

The only way to debug classic ASP in VS2005 and VS2008 is to join the ASP workflow. However, you can automate this with a macro so that all tests are reduced to pressing a key combination. Here is a full working article on how to do this. It should work with any version of IIS.

http://blogs.msdn.com/greggm/archive/2006/03/15/552108.aspx

+1
source

Source: https://habr.com/ru/post/1711454/


All Articles