ffx doctor is a tool to diagnose issues with the ffx development environment.
It performs a series of checks on the host environment, the ffx daemon, and target devices to identify common configuration and operational problems.
The plugin is organized into several modular files:
DoctorTool), the plugin orchestration logic (doctor), and the integration tests.StepType), and traits (e.g., DoctorStepHandler).ffx daemon (status, restart, PID verification).ffx-usb-driver.To build the doctor plugin, build ffx:
fx build src/developer/ffx
Run the unit tests:
fx test ffx_doctor_tests