HOWTO: Debugging Active Server Pages Applications Manually
ID: Q196378
|
The information in this article applies to:
-
Microsoft Visual InterDev, version 6.0
SUMMARY
In some situations users may want to manually enable debugging for their
Active Server Pages (ASP) applications. In the following scenarios manually
debugging is the only option:
- Debugging an ASP application that is running on a port other than 80.
- Debugging an ASP application that resides on a FAT file system.
- Debugging an ASP application that resides on a virtual server using Host Header Names.
- You are not using a Domain authenticated account.
Manually debugging ASP applications can improve productivity because you do not rely on Visual InterDev to automatically set the server into the correct debugging state. Visual InterDev performs the following steps when setting up the server:
- Enables the IIS application's debugging options.
- Sets the IIS application to run in its own memory space.
- Creates a Microsoft Transaction Server (MTS) package and attaching to
the Mtx.exe process.
- Sets the identity of the package to the user you specified when you
started your first debugging session.
- Launches Internet Explorer and attaches to the Iexplore.exe process.
- After stopping the debugger Visual InterDev restores the server
settings back to their original state.
Follow the steps below to manually enable debugging.
NOTE: When manually attaching to processes, you may either attach to the
Inetinfo.exe or the Mtx.exe process. If you are debugging remotely or have
set your Web application to run out-of-process, you will want to attach to
the Mtx.exe process. If you are debugging locally and have not set your Web
application to run out-of-process, then you will want to attach to the
Inetinfo.exe process.
MORE INFORMATIONConfiguring the Web Application for Attaching to the Inetinfo.exe Process
NOTE: Use this section if you are going to be attaching to the Inetinfo.exe
process (Local debugging and running the application as in-process).
- Open the Internet Service Manager in the Microsoft Management Console (MMC).
- Display the Properties dialog box of the Web application you wish to
remotely debug (right-click and select Properties).
- Click the Configuration button, and click the App Debugging tab.
- Select both the Enable ASP server-side script debugging and the
Enable ASP client-side script debugging options and then click Apply.
Configuring the Web Application for Attaching to the Mtx.exe Process
NOTE: Use the next two sections if you are going to be attaching to the
Mtx.exe process (Remotely debugging or running application as out-of-
process).
- Open the Internet Service Manager in the MMC.
- Display the Properties dialog box of the Web application you wish to remotely debug (right-click and select Properties).
- On the Directory tab select the Run in separate memory space check box
and then click Apply.
- Click the Configuration button, then click on the App Debugging tab.
- Select both the Enable ASP server-side script debugging and the
Enable ASP client-side script debugging options and then click
Apply.
Configuring Microsoft Transaction Server for Attaching to the Mtx.exe
Process
- Open the Microsoft Transaction Server Explorer in the MMC.
- Under Microsoft Transaction Server, Computers, My Computer, Packages
Installed select the package for your Web application.
- Display the Properties dialog box for your Web application (right-click
and select Properties).
- On the Identity tab, select This user and enter the account
information that you will use for remotely debugging.
Attaching to a Process in Visual InterDev
- View the page you wish to debug in the browser.
- Open Visual InterDev.
- Select the Processes option under the Debug menu.
- In the Processes section, select the appropriate Machine then click
Refresh. The available processes will appear in the Processes window.
- If you have set up the Web application to run Out-of-Process or are
remotely debugging, you will want to attach to the Mtx.exe process.
Otherwise, you will want to attach to the Inetinfo.exe process.
- Highlight the appropriate process and click Attach. The selected process
should appear in the Debugged Processes window.
- Select the Debug Windows option under the View menu and then click
Running Documents.
- Open the document from the Running Documents window and set a
breakpoint.
- Refresh the page in the browser.
NOTE: When stopping the debugger, make sure to use the Detach all
Processes option from the Debug menu or use the Detach button in the
Processes dialog box. Using the Stop button or menu item could prevent the
debugger from stopping properly.
REFERENCES
For a video presentation of this article please visit the following web page:
http://support.microsoft.com/servicedesks/msdn/video.htm
For a video presentation of this article please visit the following web page:
Additional query words:
Keywords : kbASP kbDebug kbVisID600 kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbhowto
|