THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005
The command specifies to open the 5005 port (make sure your firewall poses no problem) and to suspend the process until a debugger is attached to the process. If you wish to allow remote debugging without having to attach a debugger before startup, simply set suspend=n.
...
Attach a remote debugger with Eclipse
...
Similarly to IntelliJ, it is possible to debug a running Flink instance on a remote machine from Eclipse.
These are the required steps:
- Go to the menu 'Run' -> 'Debug configurations...'
- Create a new 'Remote Java Application'
- In the 'Connect' tab choose:
- the project to debug
- Connection type 'Standard (Socket Attach)'
- Connection properties, host (i.e. target hostname or IP address) and port (same port specified before, i.e. 5005)
- (Optional) If you have installed Scala IDE you could see the error 'Multiple launchers available'. Just click on 'Select one' and choose the proper debugger (e.g. Eclipse JDT Launcher)