Introduction
Welcome to the VS Code extension Debug Adapter for Apache Camel
project created by Red Hat! Here you’ll find a description of how to use VS Code extension providing Debug Adapter for Apache Camel.
Description
This extension adds Camel Debugger power by attaching to a running Camel route written in Java, Yaml or XML DSL directly in your Visual Studio Code editor. It is working as a client using the Microsoft Debug Adapter Protocol which communicates with Camel Debug Server providing all functionalities.
How to install
- You can download Debug Adapter for Apache Camel extension from the VS Code Extension Marketplace and the Open VSX Registry.
-
Debug Adapter for Apache Camel can be also installed directly in the Microsoft VS Code.
Steps
- Open your VS Code.
- In VS Code, select View > Extensions.
- In the search bar, type
Camel Debug
- Select the Debug Adapter for Apache Camel option and then click
Install
.
Features
- Add/Remove breakpoints
- Support a single Camel context
Camel Main
mode for XML only
- Supports the use of Camel debugger
- Supports the local use of Camel debugger
- Support remote debug through http (when using Jolokia on server-side)
- Support conditional breakpoint with
simple
language.
- Inspect variable values on suspended breakpoints
- Resume a single route instance and resume all route instances
- Pause/resume route definition. Technically, it suspend/stop and resume/start Camel routes depending on the kind of consumer. Note that there is a single Camel route there is no thread visible in the Call stack due to VS Code implementation choice.
- Stepping when the route definition is in the same file
- Allow to update values of variables:
- in the
Debugger
scope
- the message body
- a message header of type String
- an exchange property of type String
- One-click Run and Camel debug via command
Run Camel Application with JBang and Debug
- One-click Run Camel via command
Run Camel Application with JBang
with automatic reloading
- Configuration snippets for Camel debugger launch configuration
- Configuration snippets to launch Camel application ready to accept a Camel debugger connection using
- JBang
- or Maven with Camel maven plugin
- or Quarkus Devs
Advanced