6

I am running my server from outside of my eclipse and now i want to debug it. so is it possible ? If yes how can i do that.

user85421
  • 28,957
  • 10
  • 64
  • 87
GuruKulki
  • 25,776
  • 50
  • 140
  • 201

1 Answers1

11

1) Specify this option on remote JVM.

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

Note that now the debug server is running at this remote host and port 5005.

2) In Eclipse, create and run remote debug config under Run > Debug> Debug Configurations... > Remote Java Application.

Chandra Patni
  • 17,347
  • 10
  • 55
  • 65