Corda 5 Developer Preview 2 is now available.

Debugging Against Local Corda

The CSDE includes an IntelliJ run-time configuration that allows you to attach IntelliJ’s debugger to the local Corda cluster.

To debug:

  1. Start the Corda combined worker using the startCorda Gradle helper, if not already started.
  2. Deploy your CorDapp using deployCordapp, if not already deployed.
  3. Select the DebugCorDapp run configuration.
    CSDE DebugCorDapp run configuration in IntelliJ
  4. Click the Debug button.
    Debug button in IntelliJ
    The following message is displayed to indicate a successful connection:
    DebugCorDapp connection success in IntelliJ
  5. Place a breakpoint next to the place in the code you want to inspect.
    Breakpoint added in IntelliJ
  6. Start a flow using the Swagger UI; see Running your first Cordapp section. The CorDapp stops execution at the breakpoint and you can inspect the stack.
    Pause at breakpoint in IntelliJ

Was this page helpful?

Thanks for your feedback!

Chat with us

Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.

Propose documentation improvements directly

Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.

We're sorry this page wasn't helpful. Let us know how we can make it better!

Chat with us

Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.

Create an issue

Create a new GitHub issue in this repository - submit technical feedback, draw attention to a potential documentation bug, or share ideas for improvement and general feedback.

Propose documentation improvements directly

Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.