Debugging Against Local Corda
The CorDapp template includes an IntelliJ run-time configuration that allows you to attach IntelliJ’s debugger to the local Corda cluster.
To debug:
- Start the Corda combined worker using the startCorda Gradle helper, if not already started.
- Deploy your CorDapp using deployCordapp, if not already deployed.
- Select the
DebugCorDapp
run configuration. - Click the Debug button.The following message is displayed to indicate a successful connection:
- Place a breakpoint next to the place in the code you want to inspect.
- Start a flow using the Swagger UI; see Running your First CorDapp. The CorDapp stops execution at the breakpoint and you can inspect the stack.
As described previously, if you wait too long to resume, the flow will fail. The logs will contain one or more of the following messages:
2022-09-20 18:43:20.278 [Thread-94] ERROR net.corda.flow.pipeline.impl.FlowEventPipelineImpl - Flow execution timeout, Flow marked as failed, interrupt attempted
java.util.concurrent.TimeoutException: null
net.corda.flow.pipeline.exceptions.FlowEventException: Received a Wakeup for flow [f9a83184-2f83-4587-aca4-e622f4b1bfee] that does not exist
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.