You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "djelinek (via GitHub)" <gi...@apache.org> on 2023/12/06 22:01:14 UTC

[PR] Blog - Debugging Camel Quarkus native application in VS Code [camel-website]

djelinek opened a new pull request, #1103:
URL: https://github.com/apache/camel-website/pull/1103

   cc @apupier @zbendhiba 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Blog - Debugging Camel Quarkus native application in VS Code [camel-website]

Posted by "apupier (via GitHub)" <gi...@apache.org>.
apupier commented on PR #1103:
URL: https://github.com/apache/camel-website/pull/1103#issuecomment-1845182233

   main branch fixed. Please rebase


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Blog - Debugging Camel Quarkus native application in VS Code [camel-website]

Posted by "apupier (via GitHub)" <gi...@apache.org>.
apupier merged PR #1103:
URL: https://github.com/apache/camel-website/pull/1103


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Blog - Debugging Camel Quarkus native application in VS Code [camel-website]

Posted by "apupier (via GitHub)" <gi...@apache.org>.
apupier commented on code in PR #1103:
URL: https://github.com/apache/camel-website/pull/1103#discussion_r1418494242


##########
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://code.visualstudio.com/download) 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.

Review Comment:
   I think it is worthy to mention how to call the predefined task using the command palette (or the menu). Even if the screenshot is showing it. It allows better referencing and is friendlier for people with vision issue.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Blog - Debugging Camel Quarkus native application in VS Code [camel-website]

Posted by "djelinek (via GitHub)" <gi...@apache.org>.
djelinek commented on PR #1103:
URL: https://github.com/apache/camel-website/pull/1103#issuecomment-1845196428

   > main branch fixed. Please rebase
   
   rebase done


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Blog - Debugging Camel Quarkus native application in VS Code [camel-website]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #1103:
URL: https://github.com/apache/camel-website/pull/1103#issuecomment-1845401386

   🚀 Preview is available at https://pr-1103--camel.netlify.app


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Blog - Debugging Camel Quarkus native application in VS Code [camel-website]

Posted by "zbendhiba (via GitHub)" <gi...@apache.org>.
zbendhiba commented on PR #1103:
URL: https://github.com/apache/camel-website/pull/1103#issuecomment-1846900781

   Many thanks @djelinek! 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Blog - Debugging Camel Quarkus native application in VS Code [camel-website]

Posted by "apupier (via GitHub)" <gi...@apache.org>.
apupier commented on PR #1103:
URL: https://github.com/apache/camel-website/pull/1103#issuecomment-1845016519

   we need to fix first the Camel K repo:
   ```
   ➤ YN0000: [build:antora  ] [build:antora-perf] [09:37:43.441] WARN (asciidoctor):
   ➤ YN0000: [build:antora  ] [build:antora-perf]     file: docs/modules/ROOT/pages/index.adoc
   ➤ YN0000: [build:antora  ] [build:antora-perf]     source: https://github.com/apache/camel-k.git (refname: main, start path: docs)
   ➤ YN0000: [build:antora  ] [build:antora-perf]     msg: {
   ➤ YN0000: [build:antora  ] [build:antora-perf]       "msg": "jsonpathTable block macro must follow a table, not a paragraph",
   ➤ YN0000: [build:antora  ] [build:antora-perf]       "useId": 0,
   ➤ YN0000: [build:antora  ] [build:antora-perf]       "@djencks/asciidoctor-antora-indexer": "indexTable"
   ➤ YN0000: [build:antora  ] [build:antora-perf]     }
   ➤ YN0000: [build:antora  ] ERROR: "build:antora-perf" exited with 1.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Blog - Debugging Camel Quarkus native application in VS Code [camel-website]

Posted by "apupier (via GitHub)" <gi...@apache.org>.
apupier commented on PR #1103:
URL: https://github.com/apache/camel-website/pull/1103#issuecomment-1845108385

   new failure:
   
   ```
    [check:links    ] Found invalid urls in blog/2023/02/camel-k-release-1-12/index.html:
   [check:links    ] 	Fragment #_compatibility_matrix at camel-k/next/index.html does not exist!
   [check:links    ] Found invalid urls in blog/2023/08/camel-k-micrometer/index.html:
   [check:links    ] 	Fragment #_compatibility_matrix at camel-k/next/index.html does not exist!
   ```
   Camel-website will need to be updated for changes in Camel K doc page


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Blog - Debugging Camel Quarkus native application in VS Code [camel-website]

Posted by "djelinek (via GitHub)" <gi...@apache.org>.
djelinek commented on code in PR #1103:
URL: https://github.com/apache/camel-website/pull/1103#discussion_r1418638277


##########
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://code.visualstudio.com/download) 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.

Review Comment:
   added mention how to invoke quick open palette and execute task



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org