Search code examples
spring-cloudspring-cloud-streamspring-cloud-dataflow

How to configure remote debugger for spring cloud data flow Local server


I am using the spring cloud dataflow server to create a stream. I want to do a remote debugging on the spring cloud dataflow server. Below is the command which I am trying but not able to connect on 5005 port. java -jar spring-cloud-dataflow-server-2.5.3.RELEASE.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005


Solution

  • Please refer to the guides that Sabby pointed for debugging applications and the SCDF/Skipper server in general. Apart from this, what I notice from your question above is you have the debug parameters as java program arguments which is incorrect.

    What you actually need is something like this:

    java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 -jar spring-cloud-dataflow-server-2.5.3.RELEASE.jar 
    

    The debug parameters need to be passed before -jar argument.