There are several ways to establish an environment for debugging your ISAPI extensions and filters. If you are using a debugging tool capable of attaching to a Windows process, you can use this functionality to debug your component or extension. For example, if you are debugging an ISAPI extension with Microsoft Visual Studio you should take the following steps.
If the debugging tool you are using is not capable of attaching to a Windows process, you should take the following steps to establish an appropriate debugging environment.
where DebuggerExeName is the full path to the debugger you are using.
When the World Wide Web Publishing Service is started, your debugger will also be launched. You can now set appropriate breakpoints in your ISAPI extension.
You won't be able to set breakpoints in a component's source code until the extension has been loaded into memory. For ISAPI extensions, you will need to start Internet Explorer and request the ISAPI URL. As soon as the page is loaded, you should be able to set breakpoints in your component. Refresh the page to trigger the breakpoints you selected. If the extension or filter cannot be loaded even once (for instance, if the fault occurs in component startup code) you will need to load the ISAPI DLL prior to starting the debugging session. (See step 5 of the following procedure.)