Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 2.58 KB

README.md

File metadata and controls

46 lines (31 loc) · 2.58 KB

Build and Test Maintainability Rating Drag to your running Eclipse* workspace to install. *Requires Eclipse Marketplace Client

Camel Debug Adapter client for Eclipse

This repository will provide a client for the Debug Adapter implementation for Apache Camel. As a first step, manual steps are provided to use the Debug Adapter for Apache Camel inside your Eclipse instance.

How to use the Debug Adapter for Apache Camel

Camel Specific Launcher

Happy path

The advantage is that a minimal set of information is visible.

  • Install extension from this repository
  • Launch the Camel (3.16+) application that you want to debug with camel-debug on the classpath
  • Create a Camel Textual debug debug configuration
    • Click Debug
  • You can now set breakpoints in textual Camel route definition

Advanced configuration

In the Camel Textual debug debug configuration, you can provide additional parameters. For instance when trying to connect to a remote JMX URL: { "request": "attach", "attach_jmx_url":"<aJMXURL>" }

it is also possible to use the PID of the Camel application:

{ "request": "attach", "attach_pid":"<pidOfCamelApplication>" }

Built-in LSP4E.Debug Launcher

The advantage is that it is giving more power on the actions and the versions to use.

  • Build the Camel Debug Adapter Jar from this repo or retrieve it from
  • Install Eclipse LSP4E in your Eclipse Desktop instance
  • Launch the Camel application that you want to debug
  • Create a Debug Adapter Launcher debug configuration
    • Select Launch a Debug Server using the following arguments
    • in command field, set java
    • in Arguments field, set -jar <pathTo>/camel-dap-server-xxx.jar
    • in Launch Parameters (Json) field, set { "request": "attach" }
    • Click Debug
  • You can now set breakpoints in textual Camel route definition