Github user yanghua commented on a diff in the pull request:
https://github.com/apache/flink/pull/6245#discussion_r199849293
--- Diff: flink-scala-shell/start-script/start-scala-shell.sh ---
@@ -19,6 +19,9 @@
# from scala-lang 2.10.4
+# Uncomment the following line to enable remote debug
+# export
FLINK_SCALA_SHELL_JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
--- End diff --
If not remote debug mode, it does not exist the env variable
`FLINK_SCALA_SHELL_JAVA_OPTS `, but it would be used in other place. What's
more, I think use a bool flag would be better that "uncomment".
---