HOWTO: Configure ASP Debugging for Visual InterDev 6.0

ID: Q192011


The information in this article applies to:
  • Microsoft Visual InterDev, version 6.0


SUMMARY

This Knowledge Base article will briefly describe the steps involved to set up Active Server Pages (ASP) Script debugging for use with Visual InterDev Version 6.0.

NOTE: It is required to have the server components installed on the server for debugging to work.


MORE INFORMATION

Configure Windows NT Permissions for Users Who Need to Debug

In order to correctly use debugging you must be part of the administrators group on the Internet Information Server (IIS) server machine.

NOTE: Microsoft understands that this is a limitation and any new information regarding this issue will be posted in the Knowledge Base.

Using the User Manager for Domains, add the Windows NT user account that will be used for debugging to the administrators group. Only one account can be used for debugging at a time. Granting permissions to a group such as the Administrators group is not recomended.

Configure DCOM Permissions


  1. From the Start button, click Run on the server computer.


  2. Type dcomcnfg.exe and click OK.


  3. On the Applications tab, scroll down to the Catalog Class and select it (single click).

    NOTE: The Catalog Class item is installed with Back Office Installation Wizard and is part of the Server components for Visual InterDev 6.0


  4. Click the Properties button to display the Properties dialog box.


  5. Click the Security tab.


  6. Select Use custom access permissions and click Edit. Add a user who is part of the administrators group on that machine. Grant the user Allow Access rights.


  7. Select Use custom launch permissions and click Edit. Add the same user here and grant them Allow Launch rights.


  8. Select Use custom configuration permissions and click Edit. Add the same user here as well and grant them Full Control.


  9. Select the Identity tab.


  10. Select the This user option for the user account you want to run for this application.


  11. Type in the domain and userid of the user who you added in the above steps.


  12. Type that user's password both in the Password and Confirm Password boxes.


  13. Click OK to exit the Catalog Class Properties dialog box.


  14. Display the Properties dialog box for the Machine Debug Manager item.

    Repeat steps 4-13 for the Machine Debug Manager.


  15. Select the Default Properties tab on the Distributed COM Configuration Properties dialog box.


  16. Ensure that the check box for Enable Distributed COM on this server is selected.


  17. Set the Default Authentication Level to Connect.


  18. Set the Default Impersonation Level to Identify.


How to Set Up a Visual InterDev 6.0 Project for Debugging


  1. Create a new Web project in Visual InterDev 6.0.


  2. Add an Active Server Pages (ASP) page to the project.


  3. Add the following lines of code to the new ASP page within the HTML body:
    
    <%
    DIM temp
    temp = "Hello World"
    Response.Write(temp)
    %> 


  4. Click in the border area to the left of the second line (temp = "Hello World"), this will set a breakpoint for that line. A large dot will appear next to the line in the border.


  5. Right-click the ASP file name in the Project Explorer and select the Set As Start Page option.


  6. A dialog box appears asking if you would like to automatically set the application into debug state. Click Yes and continue.


  7. A dialog box appears prompting you to log on. Log on using the account you granted access to previously for debugging. This invokes the Visual InterDev script debugger. The debugger breaks on your breakpoint, and the line is highlighted.



REFERENCES

For more information, please see the "Microsoft Visual InterDev 6.0 Debugging" white paper on the Microsoft Developer Network (MSDN) Online:

http://msdn.microsoft.com/vinterdev/technical/articles/debug.asp
Please see the following articles in the Microsoft Knowledge Base for more information regarding Visual InterDev Debugging:
Q199004 INFO: VI6 ASP Debugging Not Supported in Windows 95/98

Q230507 PRB: Can't Find Project on Web Server or Set Server Debugging

Q196378 HOWTO: Debugging Active Server Pages Applications Manually

Q216668 PRB: VI Debugger Doesn't Close Connections When Stopping

Additional query words:

Keywords : kbide kbVisID600 kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: January 27, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.