fix #1257 add remoteDebug

This commit is contained in:
Shinsuke Sugaya 2017-09-02 15:21:47 +09:00
parent d1f5a514f1
commit 14ad100a6b

View file

@ -44,6 +44,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SuggestJob {
private static final String REMOTE_DEBUG_OPTIONS = "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=localhost:8000";
private static final Logger logger = LoggerFactory.getLogger(SuggestJob.class);
protected JobExecutor jobExecutor;
@ -85,6 +87,10 @@ public class SuggestJob {
return this;
}
public SuggestJob remoteDebug() {
return jvmOptions(REMOTE_DEBUG_OPTIONS);
}
public SuggestJob jvmOptions(final String option) {
this.jvmOptions = option;
return this;