In this section, we will discuss how to debug Spark applications running on locally on Eclipse or IntelliJ, as standalone or cluster mode in YARN or Mesos. Before getting started, you can also read the debugging documentation at https://hortonworks.com/hadoop-tutorial/setting-spark-development-environment-scala/.