Last week I was trying to debug a program running on my ec2 instance to which I was connected via proxy.
Creating a tunnel on my local to remote host:
ssh -f @ -L :127.0.0.1: -N
Connect to the tunnel on IDE: connect to localhost
Run the jar file in debug mode on AWS ec2 or any remote server: sudo java -jar -Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address= you-jar-file.jar &>console.out
&
No comments:
Post a Comment