This is the client implementation of the Debug Adapter Server for Apache Camel for Visual Studio Code
View the Project on GitHub camel-tooling/camel-dap-client-vscode
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.
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.
Debug Adapter for Apache Camel can be also installed directly in the Microsoft VS Code.
Steps
Camel DebugInstall.Camel Main mode for XML onlysimple language.Debugger scopeRun with JBang and Debug Opened Camel Integration, Run with JBang and Debug All Camel Integrations from workspace root and Run with JBang and Debug All Camel Integrations from containing folder. It allows a one-click start and Camel debug in simple cases. This command is available through:
*.xml, *.java, *.yaml and *.yml.from and a to or a log on java, xml and yaml files).Run or debug... quick action editorRun with JBang and Debug Opened Camel Integration, Run with JBang Opened Camel Integration and Run with JBang All Camel Integrations from workspace root
--dev by default.yaml|.yml) opened in editor.*.yaml and *.yml.Run or debug... quick action editorDue to [CAMEL-21612](https://issues.apache.org/jira/browse/CAMEL-21612], the Camel debugger in VS Code is not working out of the box. To use the Camel debugger if you are not using any kamelets, you can workaround it by going to File -> Preferences -> Settings, then type Extra launch parameter and remove the --local-kamelet-dir=. default option.
Note that you will have also to change the settings of Camel JBang to use 4.9, File -> Preferences -> Settings -> Camel -> Debug Adapter -> JBang version.