Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

-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:

  1. Go to the menu 'Run' -> 'Debug configurations...'
  2. Create a new 'Remote Java Application'
  3. In the 'Connect' tab choose:
    1. the project to debug
    2. Connection type 'Standard (Socket Attach)'
    3. Connection properties, host (i.e. target hostname or IP address) and port (same port specified before, i.e.  5005)
  4. (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)