Textual debug for Camel routes allows to set breakpoints at Route definition.
The new release of VS Code Debug Adapter for Apache Camel 0.3.0 improves guidance to start the debug session and provide support for conditional breakpoint.
Guidance to start the debug session improvements
Codelens and contextual menu
In previous release, the command
Start camel Application with JBang and debug was provided in the command palette. This command is now also available closer in the User UI. Both as a codelens and as a contextual menu on right-click in the file explorer. They are available on
Completion for Quarkus
.vscode/tasks.json, a new completion is available to guide user.
For more details how to Camel debug a Quarkus application, see this previous blogpost.
Conditional breakpoints are now supported. It allows to suspend the route execution only on certain conditions. For instance, when the
body has a certain value.
You can add a condition and/or hit count when creating a source breakpoint (with the
Add Conditional Breakpoint action) or when modifying an existing one (with the
Edit Condition action). In both cases, an inline text box with a dropdown menu opens where you can enter Camel
simple language expression.
For details how to write the condition, see the Camel Simple language documentation page.
A video is available to see it in action with comments.
Breakpoints available on start
In previous versions, the Camel breakpoints needed to be set after the Camel debugger was connected to the Camel application. It is now possible to set breakpoints before starting the Camel debugger.