Topic: Debugging a Remote Windows Service
Share/Save/Bookmark
Scenario: Application calls Windows Service
 
The Main Application's configuration file must be changed. You must change
the reference from the current remote service (e.g. Local) to the
remote service on your Developer desktop
 
Configure the Windows Remote Service for debugging
1. Open the source code for the Remote Service
2. Build the Windows Service
3. Open the ".Net" cmd prompt and install the service on your machine
    a. install: installutil "path to the executable"
    b. uninstall: unstallutil -u "path to the executable"
4. Go to Admin Tools/Services
5. Right click on the Service, and start the service
6. From the Source code for the Remote Service, do the following:
    a. Put in your debug points
    b. Go to Tools/Debug processes
    c. Find the process in "available processes"
    d. Double-click on the process
    e. Select CLR and Native (may not need both)
    f. Click 'OK'
    g. Click 'CLOSE'
7. The solution will now listen for the process to be called and debugging
    will take over.
 
Main Application
1. Start the application (debug mode, or not)
2. Run the methods that call the remote service and wait for debugging to take place