Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.34 KB

README.md

File metadata and controls

19 lines (11 loc) · 1.34 KB

Development Guide

This document offers a comprehensive guide for configuring the development environment and debugging the worker component within the AI worker repository. For an in-depth exploration of developing the runner, please consult the AI runner development guide.

Debugging

Local Debugging

To directly debug the AI worker, use the go scripts in the cmd/examples folder to test and debug the AI worker. Run these scripts with Golang or use Vscode with the golang extension for debugging. Future updates will include tests to enhance the development pipeline.

Debugging within go-livepeer

To debug the AI worker within the context of the go-livepeer project, replace the go module reference in the go.mod file of the go-livepeer project with the path to your local AI worker repository:

go mod edit -replace github.com/livepeer/ai-worker=../path/to/ai-worker

This setup allows you to debug the AI worker package directly when running the go-livepeer software.