To debug the Visual Basic COM components used in ASP

Source: Internet
Author: User
Tags anonymous iis object model visual studio
Profile
This step-by-step article describes how to debug (or progressively execute) the Microsoft Visual Basic (VB) Component Object Model (COM) component that is used in the Active Server pages (ASP) page.
Debug the VB COM component used in ASP pages
In the Start menu, point to the program, point to Microsoft Visual Studio 6.0, and then click Microsoft Visual Basic.
In Visual Basic, open the COM component project that you want to debug and set a breakpoint where you want to debug. To do this, click anywhere in the statement that you want to debug. Click the Toggle breakpoint in the Visual Basic Debug menu. Note that a colored dot appears in the left margin, indicating that it is a breakpoint line. Click a dot to remove a breakpoint. To set a breakpoint on another row, click the appropriate location in the margin.
Press the F5 key to run the component in the VB integrated development Environment (IDE). If the dialog box prompts you to run the component, click Wait to create the part.
Open Internet Services Manager. To open Internet Services Manager in Microsoft Internet Information Server (IIS) 5.0, perform the following steps:


Point to the program from the Microsoft Windows Start menu, and then click Administrative Tools.
Click Internet Services Manager.
To open Internet Services Manager in IIS 4.0, follow these steps:
Point to the program from the Windows Start menu, and then click the Windows NT 4.0 Option Pack.
Click Microsoft Internet Information Server.
Click Internet Services Manager.
In Internet Services Manager, right-click the virtual directory that contains the ASP page that called your component, and then click Properties. Under Anonymous access, click Edit to set the directory security for the virtual directory to something other than anonymous.
Run the ASP page of the calling component in an Internet browser. At the breakpoint, the component is automatically transferred to the VB project.
Press F8 to debug (step through) your VB component.
Defects
If you have run a compiled version of this dynamic-link library from this ASP page, you may not be able to hit a breakpoint. In this case, you may want to stop and then restart the Microsoft Internet information Server (IIS) service. To do this, click Run in the Windows Start menu, and then type IISRESET. Note that this command stops and restarts IIS and all IIS applications that are running.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.