How to: Debug Visual Basic Comss That Are Co.

zhaozj2021-02-16  84

How to: Debug Visual Basic Com Components That Are used forin Active Server

Suitable

This Article Was previously distribLished Under Q299633

In this task

Summary

Debugging VB Comss That Are Co., ASP Pages Troubleshooting References

Summarythis Step-by-Step Procedure Demonstrates How To Debug (Or Step Through) Microsoft Visual Basic (VB) Component Object Model (COM) Components That Co.

Back to the top

Debugging VB Components That Are Co., ASP Pages

On the Start menu, point to Programs, 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 in the location where you want to debug . to do this, click anywhere in the statement where you want to debug. On the Visual Basic Debug menu, click Toggle Breakpoint. Notice that a colored dot appears in the left margin to indicate the breakpoint line. to remove the breakpoint, you can click the dot. to set breakpoints at other lines, you can click the corresponding locations in the margin. Press the F5 key, and run the component within the VB Integrated Development Environment (IDE). If a dialog box prompts you about how to run THE Component, Click Wait for Components To BE CREATED. TO OPEN Internet Services Manager in Microsoft Internet Information Server (IIS) 5.0, Follow these Steps:

From The Microsoft Windows Start Menu, Point To Programs, And The Click Administrative Tools. Click Internet Services Manager. Open Internet Services Manager In IIS 4.0, FOLLOW THESE Steps:

From the Windows Start menu, point to Programs, and then click Windows NT 4.0 Option Pack. Click Microsoft Internet Information Server. Click Internet Service Manager. In Internet Services Manager, right-click the virtual directory that contains the ASP page that calls your component , and then click Properties. Under Anonymous Access, click Edit, and set the Directory Security of this virtual directory to anything other than Anonymous. In your Internet browser, run the ASP page that calls the component. The component automatically breaks into the VB project At The Breakpoint Location. Press The F8 Key To Debug (Step THROUGH) Your Vb Component.Back to the top

TroubleshootingIf you are already running a compiled version of this dynamic-link library (DLL) from this ASP page, you may not hit the breakpoint. In this scenario, you may want to stop and restart Microsoft Internet Information Server (IIS) services. To Do this, on the window

Start Menu, Click

Run, and then Type

Iisreset. Please Note That Command Stops And Restarts IIS, AS Well As All IIS Applications That Are Running.

Back to the top

Referencesfor Additional Information, Click The Article Numbers Below to View The Articles in The Microsoft Knowledge Base:

177182 HOWTO: Debug a Visual Basic DLL Under Active Server Pages

166275 HOWTO: Debug a Native Code Visual Basic Component In VC

264957 BUG: VB DLL HAS MEMORY Leaks and Crashs in Com IF 'Retain in Memory' Not Set

259725 PRB: Error Occurs When You Debug A COM Component Under The Visual Basic IDE with an ASP Client

265492 BUG: ObjectContext Item Collection Is Empty When You Debug Under Com

244457 HOWTO: DEBUG AN MTS VB Component Running Under ASP

Back to the top

The Information in this Article Applies TO:

Microsoft Active Server Pages, WHEN USED with:

The Operating System: Microsoft Windows 2000

Microsoft Internet Information Server 4.0 Microsoft Internet Information Server 5.0 Microsoft Visual Basic Enterprise Edition for Windows 5.0 Microsoft Visual Basic Enterprise Edition for Windows 6.0 Microsoft Visual Basic Professional Edition for Windows 5.0 Microsoft Visual Basic Professional Edition for Windows 6.0

Last Reviewed: 6/25/2004 (4.0) Keywords: Kbbug Kbdebug Kbhowto KbhowTomaster KB299633 KBAUDDEVELOPER

转载请注明原文地址:https://www.9cbs.com/read-18987.html

New Post(0)