Reputation: 597
Is it possible to connect to a live Java-spark application and debug it using something similar to how you debug a Tomcat web service (for tomcat debug mode, for example: catalina jpda start)?
The goal is being able to attach to the java-spark micro-service and step through the source code while it's running.
Thanks!
Upvotes: 1
Views: 2139
Reputation: 17
I'd write a Junit test that calls your function / class that you want to debug, take a sample of the input data that you believe is causing the issue and make that your input. Step through the code line by line, add in lots of shows :)
Upvotes: 0
Reputation: 402
A standard Java debugger is the most powerful, but you there is also a dedicated project which provides a debug-page: https://github.com/perwendel/spark-debug-tools
Upvotes: 1
Reputation: 2694
you debug a java-spark application just like you would debug any other Java application. Take a look here
Upvotes: 1