Here is a simple class allowing you to run your Java tests in Debug mode using jUnit and a custom browser (i.e. Chrome):
import net.thucydides.core.ThucydidesSystemProperty;
import net.thucydides.jbehave.ThucydidesJUnitStories;
public class DebuggingChromeTestSuite extends ThucydidesJUnitStories {
public DebuggingChromeTestSuite() {
System.setProperty(“webdriver.chrome.driver”, “C:\\Automation\\drivers\\chromedriver.exe”);
runThucydides().withDriver(“chrome”);
runThucydides().withProperty(ThucydidesSystemProperty.THUCYDIDES_USE_UNIQUE_BROWSER).setTo(true);
findStoriesCalled(“YourStoryName.story”);
}
}