fix #1257 add remoteDebug
This commit is contained in:
parent
d1f5a514f1
commit
14ad100a6b
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue