Her er en god vejledning - helt fra start!
(kilde: MSDN)
>>>>>>>>
ASP Debugging, Local Server and Remote Debugging with Windows 2000
This document is a minimized version of the MSDN article Microsoft Visual InterDev 6.0 Debugging (
http://msdn.microsoft.com/library/techart/msdn_videbugging.htm)
Set the client machine up:
Install…
1. Windows 2000 Server/Professional
2. Visual InterDev 6.0
3. Visual Studio SP4 (Recommended but not necessary)
You can find the latest service pack for Visual Studio at
http://msdn.microsoft.com/vstudio4. IIS from Add/Remove Programs and Add/Remove Windows Components if this isn’t installed during the W2K installation
Set the server machine up:
(Note: If local server ASP debugging will be used, then the server is the same machine as the client, otherwise this will be installed on a separate machine. You can then also skip steps 1 and 2 in the server setup, as these components are already installed)
Install…
1. Windows 2000 Server/Professional
2. IIS from Add/Remove Programs and Add/Remove Windows Components if this isn’t installed during the W2K installation
3. Visual InterDev Server from VID_SS on Visual Studio 6.0 ENT CD2
4. Remote Machine Debugging from SCRPT_SS on Visual Studio 6.0 ENT CD2
5. Any updates for FrontPage 2000 Server Extensions from
http://msdn.microsoft.com/workshop/languages/fp/2000/winfpse.aspConfigure the server machine for local server or remote ASP debugging:
1. Configure FrontPage Server Extensions by selecting the default web site in Internet Information Services and select Action – All Tasks - Configure Server Extensions
2. Run DCOMCNFG.EXE
3. Select Catalog Class and click Properties
4. Select the Security tab
5. Select Use custom access permissions and click Edit
6. Add the local Administrators group and the local users Interactive and System
7. Click OK to accept the users and groups selected
8. Select Use custom launch permissions and click Edit
9. Add the local Administrators group and the local users Interactive and System
10. Click OK to accept the users and groups selected
11. Select the Identity tab
12. Select This User and type a Domain\\User_Name and password (Note: This user must be a member of the administrators group)
13. Click Apply and OK to accept these security settings
14. Do steps 3-13 again but now for the Machine Debug Manager
15. Click OK to close DCOMCNFG
16. Reboot the machine for the changes to take affect
Set a project up and configure it for local server or remote ASP debugging:
1. Start Visual InterDev 6.0
2. Select New Web Project and click Open
3. Type the name of the server and click Next (Note: In case of local server ASP debugging this will be the name of your client machine)
4. Click Finish
5. Add an ASP page to this project and give it some code
Sample code:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME=\"GENERATOR\" Content=\"Microsoft Visual Studio 6.0\">
</HEAD>
<BODY>
<%
Dim iWidth,iHeight,iDepth,iArea,iVolume
iWidth = 20
iHeight = 30
iDepth = 5
iArea = iWidth * iHeight
iVolume = iArea * iDepth
Response.Write \"Area: \" & iArea %> <BR> <%
Response.Write \"Volume: \" & iVolume
%>
</BODY>
</HTML>
6. Save the ASP page.
7. Set this ASP page as the start page of this project by right-clicking it in the Project Explorer and select Set As Start Page
8. Configure the project to use automatic debugging. Do this by bringing up the properties for this project. Set the EnableServerDebugging property to True (Note: In the projects property page this is located under the Launch tab)
You are now ready to debug this project. Set a breakpoint and select Start from the Debug menu, or simply press the start button.
Note: A log in dialog box will appear when starting an ASP debug session. The user entered must be a member of the administrators group on the server.
Troubleshooting
Please review the following knowledgebase article for troubleshooting.
ID: Q244272, INFO: Visual InterDev 6.0 Debugging Resources
http://support.microsoft.com/support/kb/articles/Q244/2/72.asp