This is an automated email from the ASF dual-hosted git repository.

gaojun2048 pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new fa11e4abd [Improve][Bin] Add cluster debug config. (#4692)
fa11e4abd is described below

commit fa11e4abd8c57ea8bd1683f220ef6dc9b7a0591c
Author: FlechazoW <35768015+flecha...@users.noreply.github.com>
AuthorDate: Fri Apr 28 10:53:42 2023 +0800

    [Improve][Bin] Add cluster debug config. (#4692)
---
 seatunnel-core/seatunnel-starter/src/main/bin/seatunnel-cluster.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel-cluster.sh 
b/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel-cluster.sh
index 66228d2fa..ba578b801 100755
--- a/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel-cluster.sh
+++ b/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel-cluster.sh
@@ -89,6 +89,12 @@ if [ -e "${CONF_DIR}/log4j2.properties" ]; then
   JAVA_OPTS="${JAVA_OPTS} -Dseatunnel.logs.file_name=seatunnel-engine-server"
 fi
 
+# Server Debug Config
+# Usage instructions:
+# If you need to debug your code in cluster mode, please enable this 
configuration option and listen to the specified
+# port in your IDE. After that, you can happily debug your code.
+# JAVA_OPTS="${JAVA_OPTS} 
-Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n"
+
 CLASS_PATH=${APP_DIR}/lib/*:${APP_JAR}
 
 ST_TMPDIR=`java -cp ${CLASS_PATH} 
org.apache.seatunnel.core.starter.seatunnel.jvm.TempDirectory`

Reply via email to