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.
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-debugon the classpath - Create a
Camel Textual debugdebug configuration- Click
Debug
- Click
- You can now set breakpoints in textual Camel route definition
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>" }
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 Launcherdebug configuration- Select
Launch a Debug Server using the following arguments - in
commandfield, setjava - in
Argumentsfield, set-jar <pathTo>/camel-dap-server-xxx.jar - in
Launch Parameters (Json)field, set{ "request": "attach" } - Click
Debug
- Select
- You can now set breakpoints in textual Camel route definition