In production environment
Suppose you dont have visual studio editor. You have only dlls in the production machine. There is no code.
Along with framework you will get Remote Debugger tools in visual studio menu.
In the production machine start remote debugger tool. You will get machineno along with port no.