In the very first beta release of the DebugWindow feature, it uses the configuration file to set up the endpoint ports. Later we have changed the approach in order to be able to assign dynamically the ports depending on the running Visual Studio instances, but we forgot to remove the endpoints section in the service host configuration. It is an obvious defect that could easily lead to confusion and needs to be fixed.
Probably the next reasonable question would be: It is fine, but how can I change the ports then?
Currently, the DebugService service port configuration is controlled via Windows registry, you can use DebugWindowPortRangeStart and DebugWindowPortRangeEnd DWORD registry values to configure the port range. Both values should be entered by hand under HKCU\Software\Telerik\JustMock and should allow at least 4 values (equal to the number of the exposed services per host instance), see below:
Please verify inside Visual Studio Output Pane that the newly entered port range is accepted and the background service process is started successfully:
In the near future, we will expose a dedicated UI for this purpose, but for now, this is the only way to do so.
I hope you find this information helpful. Do not hesitate to contact us if there is something unclear.
The fix is available with R3 SP1 2020 release and all the latest versions.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.