You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ap...@apache.org on 2023/12/07 14:17:28 UTC

(camel-website) branch main updated: Blog - Debugging Camel Quarkus native application in VS Code

This is an automated email from the ASF dual-hosted git repository.

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 094f74b9 Blog - Debugging Camel Quarkus native application in VS Code
094f74b9 is described below

commit 094f74b9d886151f3f7e95fee085238aaa5e9e76
Author: Dominik Jelinek <dj...@redhat.com>
AuthorDate: Wed Dec 6 22:58:35 2023 +0100

    Blog - Debugging Camel Quarkus native application in VS Code
    
    Signed-off-by: Dominik Jelinek <dj...@redhat.com>
---
 .../build-native.png                               | Bin 0 -> 1010118 bytes
 .../export-project.png                             | Bin 0 -> 971555 bytes
 .../12/camel-quarkus-native-vscode-debug/index.md  |  63 +++++++++++++++++++++
 .../javadsl-route.png                              | Bin 0 -> 905146 bytes
 .../launch-app.png                                 | Bin 0 -> 1067396 bytes
 .../set-breakpoint.png                             | Bin 0 -> 1354963 bytes
 6 files changed, 63 insertions(+)

diff --git a/content/blog/2023/12/camel-quarkus-native-vscode-debug/build-native.png b/content/blog/2023/12/camel-quarkus-native-vscode-debug/build-native.png
new file mode 100644
index 00000000..2ca69a0d
Binary files /dev/null and b/content/blog/2023/12/camel-quarkus-native-vscode-debug/build-native.png differ
diff --git a/content/blog/2023/12/camel-quarkus-native-vscode-debug/export-project.png b/content/blog/2023/12/camel-quarkus-native-vscode-debug/export-project.png
new file mode 100644
index 00000000..9c837e53
Binary files /dev/null and b/content/blog/2023/12/camel-quarkus-native-vscode-debug/export-project.png differ
diff --git a/content/blog/2023/12/camel-quarkus-native-vscode-debug/index.md b/content/blog/2023/12/camel-quarkus-native-vscode-debug/index.md
new file mode 100644
index 00000000..1e83c9f3
--- /dev/null
+++ b/content/blog/2023/12/camel-quarkus-native-vscode-debug/index.md
@@ -0,0 +1,63 @@
+---
+title: "Debugging Camel Quarkus native application in VS Code"
+date: 2023-12-07
+authors: [ "djelinek" ]
+categories: [ "Tooling", "Camel Quarkus", "Videos" ]
+preview: "How to debug Camel Quarkus native application using VS Code in a few minutes"
+---
+
+## Prerequisites
+
+- [Visual Studio Code](https://code.visualstudio.com/download)
+- [GraalVM](https://www.graalvm.org/downloads/) for JDK 20+
+- [Maven](https://maven.apache.org/download.cgi) 3.9.3+
+- [Extension Pack for Apache Camel by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.apache-camel-extension-pack)
+
+## Step-by-Step
+
+{{< youtube id="LIxs5Ga_tX0" class="video" >}}
+
+These steps provide a structured approach to generating, setting up, building, and debugging a Camel Quarkus native application within the VS Code environment.
+
+#### Generate Example Camel Route in VS Code Workspace
+
+Within your clean VS Code workspace, initiate the creation of an exemplary Camel route using the command `Camel: Create a Camel Route using Java DSL`. This sets the foundation for your project's routing structure.
+
+![Create a Camel Route using Java DSL](javadsl-route.png)
+
+#### Transform the generated Camel Route into a Camel Quarkus Project
+
+Utilize the command `Camel: Create a Camel Quarkus project` to generate a project based on the previously created Camel route. This action transforms your route into a robust Camel Quarkus project, ready for development.
+
+![Create a Camel Quarkus project](export-project.png)
+
+#### Cleanup
+
+This step ensures a clean structure. Remove the original Camel route file from the root of the newly generated project.
+
+#### Build Camel Quarkus Native Application
+
+Execute a predefined task from `.vscode/tasks.json` to initiate the build process for your Camel Quarkus Native application. This predefined task streamline the building procedure, ensuring a smooth and debug-ready build. You can run your tasks using VS Code Quick Open (`Ctrl/CMD + P`) by typing `task <command name>`.
+
+![Build a Camel Quarkus native application](build-native.png)
+
+#### Launch Application using Predefined Configuration
+
+Navigate to the `Run and Debug` view within VS Code, where debugging configurations and controls are accessible. Execute the predefined launch configuration to initiate the start of Camel Quarkus Native application. This step seamlessly initiates the execution of your application, readying it for debugging.
+
+![Launch a debug-ready Camel Quarkus native application](launch-app.png)
+
+#### Set Breakpoint in Camel Route
+
+Place a breakpoint within the Camel route to interrupt the execution at a specific point. This move allows for detailed inspection and debugging of the application's behavior precisely where needed.
+
+![Set a breakpoint in a Camel Route](set-breakpoint.png)
+
+## What's next
+
+Feel free to provide feedback and ideas using your preferred channel:
+
+- [Zulip #camel-tooling channel](https://camel.zulipchat.com/#narrow/stream/258729-camel-tooling)
+- [Language support for Apache Camel - GitHub issues](https://github.com/camel-tooling/camel-lsp-client-vscode/issues)
+- [Debug Adapter for Apache Camel - GitHub issues](https://github.com/camel-tooling/camel-dap-client-vscode/issues)
+- [Red Hat Issues Tracker](https://issues.redhat.com/browse/FUSETOOLS2)
diff --git a/content/blog/2023/12/camel-quarkus-native-vscode-debug/javadsl-route.png b/content/blog/2023/12/camel-quarkus-native-vscode-debug/javadsl-route.png
new file mode 100644
index 00000000..b7a3d4f5
Binary files /dev/null and b/content/blog/2023/12/camel-quarkus-native-vscode-debug/javadsl-route.png differ
diff --git a/content/blog/2023/12/camel-quarkus-native-vscode-debug/launch-app.png b/content/blog/2023/12/camel-quarkus-native-vscode-debug/launch-app.png
new file mode 100644
index 00000000..73cf3271
Binary files /dev/null and b/content/blog/2023/12/camel-quarkus-native-vscode-debug/launch-app.png differ
diff --git a/content/blog/2023/12/camel-quarkus-native-vscode-debug/set-breakpoint.png b/content/blog/2023/12/camel-quarkus-native-vscode-debug/set-breakpoint.png
new file mode 100644
index 00000000..770e3cc2
Binary files /dev/null and b/content/blog/2023/12/camel-quarkus-native-vscode-debug/set-breakpoint.png differ