Friday, June 21, 2019

Example Remote Java Application Debugging

Step 1:

Create a Runnuable Jar file.

Step 2:

Run the Jar file as following:

java -Xdebug -Xrunjdwp:transport=dt_socket,address=0.0.0.0:8000,server=y,suspend=y -jar jar file

Example:



Step 3 : Eclipse Configurations and running.

Note : we should check the IP Address , Port Number is same .. Otherwise Debug will not work.
When you click on debug then the Jar fill will start running.
When we keep debug point then the Application will stop at the point.



No comments:

Post a Comment

Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...