change to constant
This commit is contained in:
parent
ea923e935d
commit
59b03b931c
1 changed files with 4 additions and 1 deletions
|
@ -43,6 +43,9 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class CrawlJob {
|
||||
private static final String XDEBUG_XRUNJDWP_TRANSPORT_DT_SOCKET_SERVER_Y_SUSPEND_Y_ADDRESS_127_0_0_1_8000 =
|
||||
"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=127.0.0.1:8000";
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(CrawlJob.class);
|
||||
|
||||
protected JobExecutor jobExecutor;
|
||||
|
@ -137,7 +140,7 @@ public class CrawlJob {
|
|||
}
|
||||
|
||||
public CrawlJob remoteDebug() {
|
||||
return jvmOptions("-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=127.0.0.1:8000");
|
||||
return jvmOptions(XDEBUG_XRUNJDWP_TRANSPORT_DT_SOCKET_SERVER_Y_SUSPEND_Y_ADDRESS_127_0_0_1_8000);
|
||||
}
|
||||
|
||||
public CrawlJob jvmOptions(String option) {
|
||||
|
|
Loading…
Add table
Reference in a new issue