Ngone51 commented on a change in pull request #259: Add remote debug guidance
URL: https://github.com/apache/spark-website/pull/259#discussion_r378075040
##########
File path: developer-tools.md
##########
@@ -435,6 +435,46 @@ Error:(147, 9) value q is not a member of StringContext
q"""
^
```
+<h4>Remote Debug Unit Test</h4>
+This part will show you how to debug unit test in SBT with the help of remote
debug functionality which provided by IntelliJ.
+
+<h5>Set up Remote Debug Configuration</h5>
+Follow <i>Run > Edit Configurations > + > Remote</i> to open a default Remote
Configuration template:
+<img src="/images/intellij_remote_debug_configuration.png" style="width: 75%;
max-width: 660px;" />
+
+Normally, the default values should be good enough to use. Make sure that you
choose <b>Listen to remote JVM</b>
+as <i>Debugger mode</i> and select the right <i>Command line arguments for
remote JVM</i> as per your JDK version.
+
+Once you finish configuration and save it. You can follow <i>Run > Run >
Your_Remote_Debug_Name > Debug</i> to start remote debug
+process and wait for SBT console to connect:
+
+<img src="/images/intellij_start_remote_debug.png" style="width: 75%;
max-width: 660px;" />
+
+<h5>Debug Test in SBT</h5>
+
Review comment:
Maybe, we could move this overall instruction to under the first level tile
`Debug Spark Remotely`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]