Debugging Web Applications That Are DLLs
Go Up to Debugging server applications Index
ISAPI, NSAPI, and Apache applications are actually DLLs that contain predefined entry points. The Web server passes request messages to the application by making calls to these entry points. Because these applications are DLLs, you can debug them by setting your application's run parameters to launch the server.
To set up your application's run parameters, choose Run > Parameters and set the Host Application and Run Parameters to specify the executable for the Web server and any parameters it requires when you launch it. For details about these values on your Web server, see the documentation provided by you Web server vendor.
Once you have set the Host Application and Run Parameters, you can set up your breakpoints so that when the server passes a request message to your DLL, you hit one of your breakpoints, and can debug normally.
User rights necessary for DLL debugging
Under Windows, you must have the correct user rights to debug a DLL.
To obtain these rights
- In the Administrative Tools portion of the Control Panel, click on Local Security Policy. Expand Local Policies and double-click User Rights Assignment. Double-click Act as part of the operating system in the right-hand panel.
- Select Add to add a user to the list. Add your current user.
- Reboot so the changes take effect.