

Last date modified: June 30 2025
The local debugger is a Visual Studio extension for that you can use to simplify debugging custom agents and Kepler services used in Relativity.
The setup for the local debugger takes approximately 10 minutes to complete per DevVM.
Review the following system requirements for your DevVM and the local debugger extension.
Review the following requirements for your DevVM and resource file dlls:
For new DevVMs, ensure that the DevVM is renamed in Hyper-V, so the name contains only hyphens instead of periods. This modification allows the VM to be trusted by and compatible with the local debugger. For example, rename RelativityDevVm-12.3.149.23 to RelativityDevVm-12-3-149-23 in Hyper-V.
Review the following requirements for the local debugger execution and validation:
1
<Project Sdk="Microsoft.NET.Sdk">
1
2
3
4
<TargetFramework>xxxx</TargetFramework>
<OutputPath>xxxx</OutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath
To convert your project, see Convert to the latest SDK project format.
For general information about project conversion, see the following web pages:
Use the following steps to download and install the VSIX package for the local debugger:
Install the VSIX file by double-clicking on it in File Explorer and installing it through the VSIX installer.
(Click to expand)
Use the following steps to set up the local environment on your DevVM for debugging:
To ensure your VM is trusted by and compatible with the local debugger, rename the DevVM in Hyper-V, so the name contains only hyphens instead of periods. For example, rename RelativityDevVm-12.3.149.23 to RelativityDevVm-12-3-149-23 in Hyper-V.
To start debugging with the local debugger extension, use the following steps.
If you don't complete this step, the pre-validation checks will identify this issue. You will have to start the DevVM before the configuration proceeds.
Verify that the Local Debugger Tool window is launched in the same pane as Solution Explorer:
(Click to expand)
(Click to expand)
For example, if the DevVM currently installed on your local machine is named is RelativityDevVm-11-3-72-29 in Hyper-V, then enter the information on the Local Debugger Tool pane:
The application GUID corresponds to the application installed on the Relativity instance hosted in your DevVM, which contains the resource file dlls of the extensibility points for debugging.
(Click to expand)
Verify that you have received the following message: Finished configuring agent projects in solution. This message indicates that your system is ready for debugging.
After successfully configuring the VM, you can optionally connect to your Relativity instance URL through HTTPS and use the VM name as the instance domain instead of the IP Address.
1
https://RelativityDevVm-12.1.144.21/Relativity/
Because a DevVM resets its IP address when you restart your local machine, we recommend running the configuration process after restarting the VM.
(Click to expand)
Alternatively, you can launch agents manually and debug them by using the Agent Configuration section in the Local Debugger tool pane. Select the agent you want to launch and then click Launch Agent.
With a Kepler service, you have options available when determining how to debug extensibility points. A Kepler service consists of hosted endpoints. Changing your startup project to the Kepler service, starts a hosted service, but no actions occur until you make a call to an endpoint.
You need to install the Castle.Windsor 3.3.0 NuGet package in the project containing your Kepler service. You must install version 3.3.0 for the custom IWindsorInstaller implementations to register components successfully.
(Click to expand)
The default port for a Kepler service is 11100. If you want to use a different port for a Kepler service, update the port number in the Local Debugger tool pane. We recommend using a port number between 11000 - 20000. Click Save after making any changes in the tool pane.
To make calls to endpoints on a Kepler service, you can use a REST client, such as Postman.
Use the following steps to make a REST call:
(Click to expand)
(Click to expand)
1
http://172.28.14.8:11100/api/ServiceModuleRoute/WebServiceRoute/FunctionRoute
This URL is like those used on other Relativity instances, except for the removal of Relativity.REST.
You can manually run agents against a locally hosted Kepler service.
Use the following steps to debug multiple projects, such as an agent and a Kepler service.
(Click to expand)
Use the following folder paths to locate extensions, logs, and other files:
1
%LocalAppData%\Microsoft\VisualStudio\<Visual Studio version>\Extensions\
1
%LocalAppData%\RelativityStudio\
1
%LocalAppData%\RelativityStudio\Logs
Review the following information about the conversion tool used to update a project to the SDK project format required by Microsoft.
To update your project, use the conversion tool available in the following GitHub repository: hvanbakel / CsprojToVs2017. This tool is easy to use through PowerShell.
The following steps explain how to use the conversion tool to update your project to the required SDK project format.
1
dotnet --version
1
dotnet tool install --global Project2015To2017.Migrate2019.Tool
1
dotnet migrate-2019 wizard ".\SampleAgent1.sln"
(Click to expand)
Use the following information to troubleshoot the local debugger:
If you receive the following error message, ensure your solution is built before clicking Save on the Relativity Local Debugger pane or clicking Refresh Agents on the toolbar.
(Click to expand)
When you attempt to debug an agent by clicking , the following error message is displayed:
(Click to expand)
To resolve this issue, perform one or more of these tasks:
Why was this not helpful?
Check one that applies.
Thank you for your feedback.
Want to tell us more?
Great!
Additional Resources |
|||
DevHelp Community | GitHub | Release Notes | NuGet |