Debugging
The Runner supports debugging plugins using several approaches. Choose the method that best fits your workflow.
Method 1: Load Plugin Assemblies from a Custom Path (Recommended)
In this approach, the Runner loads plugin assemblies from a directory specified by an environment variable. This eliminates the need to copy assemblies into the Runner installation.
Steps:
- Set the Environment Variable: Configure
OPENTAP_RUNNER_EXTRA_SEARCH_PATH
to point to the folder containing your plugin assemblies (e.g., your plugin’s debug output folder). - Start the Runner: Run:
./tap runner start
- Launch a Session: Create a new Session – the plugin assemblies are automatically loaded from the specified path.
Advantages:
- The Runner only needs to be registered once when using KS8500 for debugging.
- No manual copying of assemblies to the Runner installation.
- New builds of the plugin are picked up automatically in subsequent Sessions. Caveat:
- Loading plugins from extra paths can lead to conflicts if multiple versions of OpenTAP assemblies are loaded.
Method 2: Copy Plugin Assemblies to the Runner Installation
This method involves placing your plugin assemblies directly into the Runner installation directory and enabling development mode.
Steps:
- Copy Assemblies: Place your plugin assemblies (and any required dependencies, ensuring you do not overwrite existing ones like OpenTAP) into the Runner installation directory.
- Enable Development Mode: Set
OPENTAP_RUNNER_DEVELOPMENT_MODE
to 1. - Start the Runner: Run:
./tap runner start
Advantages:- Registration (e.g., via KS8500) is required only once. Caveat:
- You must manually copy both the plugin assemblies and their dependencies, which may lead to version conflicts.
Method 3: Install the Runner in the Plugin Assembly Output Folder
By installing the Runner in your plugin’s output folder, Sessions start directly from that directory, loading your plugin assemblies automatically.
Steps:
- Add the Runner as a Dependency: In your plugin project, include the Runner package. For example, in your project file:
<ItemGroup> <OpenTapPackageReference Include="Runner" Version="1.12.2" /> </ItemGroup>
(Ensure you update the version as needed.)
- Register the Runner: Register the Runner in the output folder using the command provided on the KS8500 “New Runner” page: Run:
./tap runner register ...
- Enable Development Mode: Set
OPENTAP_RUNNER_DEVELOPMENT_MODE
to 1. - Start the Runner: Run:
./tap runner start
Advantages:
- Seamless integration with your plugin project; new builds are immediately available without manual copying.