Starting to debug the out of prcocess server application is a three-step process
- Start debugging the server as a normal application.
- Set breakpoints as desired.
- Start the container application.
If you are debugging an SDI/MDI server application (Active Document), you must specify /Embedding or /Automation in the Command line arguments in the project setting
In VS 2005, select Project menu ==> Find and click Setting menu item ==> Project setting dialog pops up==> Unfold Configuration ==> Select Debugging ==> Click text box beside Command Line ==> Input /Automation
With these command line arguments, the debugger can launch the server application as though it were launched from a container. Starting the container from Program Manager or File Manager will then cause the container to use the instance of the server started in the debugger.