From 1dd74c3e66fb279fad341057c529e5fd4897578c Mon Sep 17 00:00:00 2001 From: Sami Salonen Date: Mon, 13 Jan 2020 16:59:49 +0200 Subject: [PATCH] [modbus] Developer's guide to advice how to debug binding in IDE (#6674) Signed-off-by: Sami Salonen --- .../org.openhab.binding.modbus/DEVELOPERS.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/bundles/org.openhab.binding.modbus/DEVELOPERS.md b/bundles/org.openhab.binding.modbus/DEVELOPERS.md index 8872ae8cd7644..6ea2a20ec21a6 100644 --- a/bundles/org.openhab.binding.modbus/DEVELOPERS.md +++ b/bundles/org.openhab.binding.modbus/DEVELOPERS.md @@ -1,5 +1,32 @@ # For Developers +## Debugging an addon + +Please follow IDE setup guide at https://www.openhab.org/docs/developer/ide/eclipse.html. + +When configuring dependencies in `openhab-distro/launch/app/pom.xml`, add all dependencies, including the transitive dependencies: + +```xml + + org.openhab.addons.bundles + org.openhab.binding.modbus + ${project.version} + runtime + + + org.openhab.addons.bundles + org.openhab.io.transport.modbus + ${project.version} + runtime + + + org.openhab.osgiify + net.wimpi.jamod + 1.2.3.OH + runtime + +``` + ## Testing Serial Implementation You can use test serial slaves without any hardware on Linux using these steps: