concept debugger in category camel

appears as: debugger, Debugger, The debugger
Camel in Action

This is an excerpt from Manning's book Camel in Action.

You’ve just created a new Camel project in Eclipse by using an archetype, and now you want to know how to debug this thing if a problem arises. Well, Camel is technically just a Java framework, so you can set breakpoints wherever you like. But you’ll hit a couple of issues if you try to step through your route in the debugger. Take the RouteBuilder from the order-router project, for example:

  • Integrated Camel tracer and debugger
  • You can use the tooling to inspect the message content, such as the message body and its headers. You can even update the message body from the debugger, such as changing the content of the message body or headers. When you’re ready to continue, click either the Resume or Step Over button. The latter allows you to single-step through the route, stopping at the next EIP, as shown in figure 19.6.

    Figure 19.6   The breakpoint was set on the Log EIP indicated by the dot in the upper left corner. When the breakpoint was hit, we clicked the step over button (F6), and the debugger ran to the next EIP, which is the file endpoint indicated by the square.

    c19_06.png