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

davsclaus 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 a3fbc358 Blogpost announcement for VS Code Debug Adapter for Camel 
0.1.1 release (#818)
a3fbc358 is described below

commit a3fbc35873d528d31d1435c0c61ca39f20e392d7
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Fri Apr 8 12:36:02 2022 +0200

    Blogpost announcement for VS Code Debug Adapter for Camel 0.1.1 release 
(#818)
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 ...ConsoleMessageWhenCannotUpdateVariableValue.gif | Bin 0 -> 539736 bytes
 .../2022/04/camel-textual-debug-0.1.0/index.md     |  52 +++++++++++++++++++++
 .../updateDebuggerValue.gif                        | Bin 0 -> 220562 bytes
 .../updateExchangeProperty.gif                     | Bin 0 -> 411098 bytes
 .../updateMessageBodyValue.gif                     | Bin 0 -> 499358 bytes
 .../updateMessageHeaderValue.gif                   | Bin 0 -> 658433 bytes
 6 files changed, 52 insertions(+)

diff --git 
a/content/blog/2022/04/camel-textual-debug-0.1.0/DebugConsoleMessageWhenCannotUpdateVariableValue.gif
 
b/content/blog/2022/04/camel-textual-debug-0.1.0/DebugConsoleMessageWhenCannotUpdateVariableValue.gif
new file mode 100644
index 00000000..919b37c2
Binary files /dev/null and 
b/content/blog/2022/04/camel-textual-debug-0.1.0/DebugConsoleMessageWhenCannotUpdateVariableValue.gif
 differ
diff --git a/content/blog/2022/04/camel-textual-debug-0.1.0/index.md 
b/content/blog/2022/04/camel-textual-debug-0.1.0/index.md
new file mode 100644
index 00000000..8f21544b
--- /dev/null
+++ b/content/blog/2022/04/camel-textual-debug-0.1.0/index.md
@@ -0,0 +1,52 @@
+---
+title: "Textual debug for Camel routes in VS Code release 0.1.1"
+date: 2022-04-08
+authors: [apupier]
+categories: ["Tooling"]
+preview: "Textual debug for Camel routes in VS Code release 0.1.1"
+---
+
+Textual debug for Camel routes allows to set breakpoints at Route definition. 
A first release based on Debug Adapter Server for Apache Camel has [been 
announced](/blog/2022/02/camel-textual-debug-eclipse-vscode/) last month. The 
new release 0.1.1 is coming with two new features: the support of JMX 
connection and the update of variable values.
+
+# New Features
+
+## JMX Connection support
+
+It might sound very technical but it has a tremendous functional impact. It 
simplifies a lot the launch of the debugger as there is no more the requirement 
to grab the pid. There is a stable default JMX url in Camel which allows to 
connect with the same configuration between different launch of the same Camel 
application.
+
+A [specific 
extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-debug-adapter-apache-camel)
 is required for VS Code. After installing it, you can provide a `Launch 
configuration` of type `apache.camel` in your `.vscode/launch.json`.
+
+Then  in `Run and Debug panel`, launch the launch configuration that you just 
configured.
+
+Next step is to set breakpoints and enjoy!
+
+This [video](https://youtu.be/CV8Q42uMCeM) is providing a demo of the new and 
easier way to connect the debugger.
+
+## Update variable values for simple types
+
+During a debug session, it can be convenient to update a variable value on the 
fly. it allows to test different values without modifying and 
(auto-)redeploying the application. Maybe, the most interesting ones are the 
body and the header values.
+
+Check it in action:
+
+* For Body:
+  ![Update message Body variable value](./updateMessageBodyValue.gif)
+* For Message header:
+  ![Update Message header variable value](./updateMessageHeaderValue.gif)
+* For Exchange property:
+  ![Update Exchange property variable value](./updateExchangeProperty.gif)
+* For generic debugger variables:
+  ![Update generic debugger variable value](./updateDebuggerValue.gif)
+
+Please note that if an invalid value or an unsupported modification is tried, 
an `internal error` message is available in UI and the specific error message 
is available in the Debug console.
+
+![Error Message in debug 
console](./DebugConsoleMessageWhenCannotUpdateVariableValue.gif)
+
+# New Requirements
+
+Previously, Camel 3.15+ was required for the Camel application under debug. 
With this version, Camel 3.16+ is required.
+
+# What's next
+
+Important next steps are to improve robustness of the JMX connection, to allow 
JMX over http so that Camel applications deployed in containers can be debugged 
too and to provide ability to combine start of application and debugger 
attachment.
+
+Submit your enhancement requests! Given that several extensions are involved, 
feel free to report in the one that you want and you will be redirected. In 
case of doubt, I suggest to submit in the [Red Hat 
Jira](https://issues.redhat.com/browse/FUSETOOLS2) or the [debug adapter server 
for Apache Camel GitHub 
issues](https://github.com/camel-tooling/camel-debug-adapter/issues).
diff --git 
a/content/blog/2022/04/camel-textual-debug-0.1.0/updateDebuggerValue.gif 
b/content/blog/2022/04/camel-textual-debug-0.1.0/updateDebuggerValue.gif
new file mode 100644
index 00000000..51514445
Binary files /dev/null and 
b/content/blog/2022/04/camel-textual-debug-0.1.0/updateDebuggerValue.gif differ
diff --git 
a/content/blog/2022/04/camel-textual-debug-0.1.0/updateExchangeProperty.gif 
b/content/blog/2022/04/camel-textual-debug-0.1.0/updateExchangeProperty.gif
new file mode 100644
index 00000000..83cf0fc4
Binary files /dev/null and 
b/content/blog/2022/04/camel-textual-debug-0.1.0/updateExchangeProperty.gif 
differ
diff --git 
a/content/blog/2022/04/camel-textual-debug-0.1.0/updateMessageBodyValue.gif 
b/content/blog/2022/04/camel-textual-debug-0.1.0/updateMessageBodyValue.gif
new file mode 100644
index 00000000..3373b11b
Binary files /dev/null and 
b/content/blog/2022/04/camel-textual-debug-0.1.0/updateMessageBodyValue.gif 
differ
diff --git 
a/content/blog/2022/04/camel-textual-debug-0.1.0/updateMessageHeaderValue.gif 
b/content/blog/2022/04/camel-textual-debug-0.1.0/updateMessageHeaderValue.gif
new file mode 100644
index 00000000..d965a03a
Binary files /dev/null and 
b/content/blog/2022/04/camel-textual-debug-0.1.0/updateMessageHeaderValue.gif 
differ

Reply via email to