1. Enable remote debug ( Presumption is your development machine and GIS server are different machines)
2. Enable sever extension for debug
3. Attach debugger to the process running the service
Download and install the remote debuggin tools from - https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging
A. Enable remote debug
1. Download and configure Remote tools on the development
a. Find msvsmon.exe in the directory matching your version of Visual Studio. For Visual Studio 2015:
Program Files\Microsoft Visual Studio 14.0\Common7\IDE\Remote Debugger\x64\msvsmon.exe
(x64 can debug both x86 and x64 but x86 can only debugs x86)
2. On the remote computer, copy Remote Debugger folder from development machine and put in C:\ drive. Then, run msvsmon.exe
3. The msvsmon.exe output terminal shows