...
The Debugger allows tooling or the likes to attach breakpoints which is being invoked when Exchanges are being routed.
Default
...
Implementation
Camel provides a default implementation org.apache.camel.impl.DefaultDebugger
which you can set on the CamelContext
using the setDebugger
method. Likewise you can get hold of the Debugger using the getDebugger
method on CamelContext
.
The org.apache.camel.spi.Debugger
has methods to attach and remove breakpoints. And to suspend/resume all breakpoints etc. You can also attach a condition to the breakpoint so it only reacts if the condition matches.
...
Debugging Camel Routes Using camel-test
If you are developing unit tests using the camel-test
component, then the Debugger comes out of the box. From Camel 2.9: you would need to explicit enable the debugger, by overriding isUseDebugger()
method and return true
.
...