apupier commented on code in PR #900:
URL: https://github.com/apache/camel-website/pull/900#discussion_r969222226


##########
content/blog/2022/09/Vim dap/index.md:
##########
@@ -0,0 +1,213 @@
+---
+title: "Configure Camel Debug Adapter in Vim to enable Camel Textual Route 
debugging"
+date: 2022-09-13
+authors: [Navyashree0923]
+categories: ["Tooling"]
+preview: "Configure Camel Debug Adapter in Vim to enable Camel Textual Route 
debugging"
+---
+
+A month before it became easier to provide language support inside Vim, Neovim 
using coc.nvim -[See this blog post](/blog/2022/07/coc-nvim-camel-lsp/). It is 
now time to use Camel Debug Adapter in 
Vim[camel-tooling/camel-dap-client-vim](https://github.com/camel-tooling/camel-dap-client-vim).
+
+# VIM Debug Adapter client for Apache Camel
+
+I just got the debug integration for camel in vim running using 
vimspector(https://github.com/puremourning/vimspector).
+
+![Demo](images/vimdap.gif)
+
+## Install
+Install the vimspector using vim-plug plugin manager.
+- Inside `.vimrc` file:
+- `Plug 'puremourning/vimspector'`
+- `:PlugInstall`
+
+# How to get Camel Debug Adapter server.jar file?
+- I found 2 releases of camel DAP server here - 
https://github.com/camel-tooling/camel-debug-adapter/tags but it doesn't 
contain any jar files. To get a jar file either you can compile the source or 
download from the Maven Central repository. 
+- To download from Maven Central repository
+```sh
+cd /home
+curl -LO 
https://repo1.maven.org/maven2/com/github/camel-tooling/camel-dap-server/0.4.0/camel-dap-server-0.4.0.jar
+  ```
+# Inside .vimrc file:
+```viml
+  call plug#begin()
+  " The default plugin directory will be as follows:
+  "   - Vim (Linux/macOS): '~/.vim/plugged'
+  "   - Vim (Windows): '~/vimfiles/plugged'
+  "   - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
+  " You can specify a custom plugin directory by passing it as the argument
+  "   - e.g. `call plug#begin('~/.vim/plugged')`
+  "   - Avoid using standard Vim directory names like 'plugin'
+  "
+  "
+  " Use release branch (recommend)
+  Plug 'neoclide/coc.nvim', {'branch': 'release'}
+  Plug 'puremourning/vimspector'
+  call plug#end()
+  
+  " https://github.com/puremourning/vimspector/blob/master/README.md#human-mode
+  let g:vimspector_enable_mappings = 'HUMAN'
+
+  " Vimspector key mappings 
+  nnoremap <Leader>dd :call vimspector#Launch()<CR>
+  nnoremap <Leader>dt :call vimspector#ToggleBreakpoint()<CR>
+  nnoremap <Leader>dc :call vimspector#Continue()<CR>
+  nnoremap <Leader>de :call vimspector#Reset()<CR>
+```
+
+# Configure camel-example Debug Gadget
+Place this content in `cust_camel-debug-adapter.json` in your vimspector 
directory (path might be different for you)
+```sh
+cd ~/.vim/plugged/vimspector/gadgets/linux/.gadgets.d
+```
+Vimspector adapter configuration:
+```json
+{
+  "adapters": {
+    "cust_camel-debug-adapter": {
+         "command": [
+        "java",
+        "-jar",
+        "/home/camel-dap-server-0.4.0.jar"
+         ]
+    }
+  }
+}
+```
+# Vimspector Config
+ Create a file called `.vimspector.json` in the project root and then place 
the following content
+
+ Vimspector debugger configuration:
+ ```json
+{
+  "configurations": {
+    "Camel Debug Adapter - Attach": {
+      "adapter": "cust_camel-debug-adapter",
+      "configuration": {
+        "request": "attach",
+        "sourcePaths": [ "${workspaceRoot}/src/main/java" ],
+        "hostName": "localhost",
+        "port": "${JVMDebugPort}",
+        "stepFilters": {
+          "skipClasses": [ "$$JDK" ]
+        }
+      }
+    }
+  }
+}
+```
+# How to attach camel application to vimspector for debugging
+
+* To test the camel application debugging need a working example. Lot of good 
examples are provided in this repo, 
[camel-examples](https://github.com/apache/camel-examples).
+
+* To enable Camel Textual Route debugging, you need to launch this examples 
with the profile `camel.debug`.

Review Comment:
   ```suggestion
   * To enable Camel Textual Route debugging, you need to launch these examples 
with the profile `camel.debug`.
   ```



##########
content/blog/2022/09/Vim dap/index.md:
##########
@@ -0,0 +1,213 @@
+---
+title: "Configure Camel Debug Adapter in Vim to enable Camel Textual Route 
debugging"
+date: 2022-09-13
+authors: [Navyashree0923]
+categories: ["Tooling"]
+preview: "Configure Camel Debug Adapter in Vim to enable Camel Textual Route 
debugging"
+---
+
+A month before it became easier to provide language support inside Vim, Neovim 
using coc.nvim -[See this blog post](/blog/2022/07/coc-nvim-camel-lsp/). It is 
now time to use Camel Debug Adapter in 
Vim[camel-tooling/camel-dap-client-vim](https://github.com/camel-tooling/camel-dap-client-vim).
+
+# VIM Debug Adapter client for Apache Camel
+
+I just got the debug integration for camel in vim running using 
vimspector(https://github.com/puremourning/vimspector).
+
+![Demo](images/vimdap.gif)
+
+## Install
+Install the vimspector using vim-plug plugin manager.
+- Inside `.vimrc` file:
+- `Plug 'puremourning/vimspector'`
+- `:PlugInstall`
+
+# How to get Camel Debug Adapter server.jar file?
+- I found 2 releases of camel DAP server here - 
https://github.com/camel-tooling/camel-debug-adapter/tags but it doesn't 
contain any jar files. To get a jar file either you can compile the source or 
download from the Maven Central repository. 
+- To download from Maven Central repository
+```sh
+cd /home
+curl -LO 
https://repo1.maven.org/maven2/com/github/camel-tooling/camel-dap-server/0.4.0/camel-dap-server-0.4.0.jar
+  ```
+# Inside .vimrc file:
+```viml
+  call plug#begin()
+  " The default plugin directory will be as follows:
+  "   - Vim (Linux/macOS): '~/.vim/plugged'
+  "   - Vim (Windows): '~/vimfiles/plugged'
+  "   - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
+  " You can specify a custom plugin directory by passing it as the argument
+  "   - e.g. `call plug#begin('~/.vim/plugged')`
+  "   - Avoid using standard Vim directory names like 'plugin'
+  "
+  "
+  " Use release branch (recommend)
+  Plug 'neoclide/coc.nvim', {'branch': 'release'}
+  Plug 'puremourning/vimspector'
+  call plug#end()
+  
+  " https://github.com/puremourning/vimspector/blob/master/README.md#human-mode
+  let g:vimspector_enable_mappings = 'HUMAN'
+
+  " Vimspector key mappings 
+  nnoremap <Leader>dd :call vimspector#Launch()<CR>
+  nnoremap <Leader>dt :call vimspector#ToggleBreakpoint()<CR>
+  nnoremap <Leader>dc :call vimspector#Continue()<CR>
+  nnoremap <Leader>de :call vimspector#Reset()<CR>
+```
+
+# Configure camel-example Debug Gadget
+Place this content in `cust_camel-debug-adapter.json` in your vimspector 
directory (path might be different for you)
+```sh
+cd ~/.vim/plugged/vimspector/gadgets/linux/.gadgets.d
+```
+Vimspector adapter configuration:
+```json
+{
+  "adapters": {
+    "cust_camel-debug-adapter": {
+         "command": [
+        "java",
+        "-jar",
+        "/home/camel-dap-server-0.4.0.jar"
+         ]
+    }
+  }
+}
+```
+# Vimspector Config
+ Create a file called `.vimspector.json` in the project root and then place 
the following content
+
+ Vimspector debugger configuration:
+ ```json
+{
+  "configurations": {
+    "Camel Debug Adapter - Attach": {
+      "adapter": "cust_camel-debug-adapter",
+      "configuration": {
+        "request": "attach",
+        "sourcePaths": [ "${workspaceRoot}/src/main/java" ],
+        "hostName": "localhost",
+        "port": "${JVMDebugPort}",
+        "stepFilters": {
+          "skipClasses": [ "$$JDK" ]
+        }
+      }
+    }
+  }
+}
+```
+# How to attach camel application to vimspector for debugging

Review Comment:
   ```suggestion
   # How to attach Camel application to vimspector for debugging
   ``



##########
content/blog/2022/09/Vim dap/index.md:
##########
@@ -0,0 +1,213 @@
+---
+title: "Configure Camel Debug Adapter in Vim to enable Camel Textual Route 
debugging"
+date: 2022-09-13
+authors: [Navyashree0923]
+categories: ["Tooling"]
+preview: "Configure Camel Debug Adapter in Vim to enable Camel Textual Route 
debugging"
+---
+
+A month before it became easier to provide language support inside Vim, Neovim 
using coc.nvim -[See this blog post](/blog/2022/07/coc-nvim-camel-lsp/). It is 
now time to use Camel Debug Adapter in 
Vim[camel-tooling/camel-dap-client-vim](https://github.com/camel-tooling/camel-dap-client-vim).
+
+# VIM Debug Adapter client for Apache Camel
+
+I just got the debug integration for camel in vim running using 
vimspector(https://github.com/puremourning/vimspector).
+
+![Demo](images/vimdap.gif)
+
+## Install
+Install the vimspector using vim-plug plugin manager.
+- Inside `.vimrc` file:
+- `Plug 'puremourning/vimspector'`
+- `:PlugInstall`
+
+# How to get Camel Debug Adapter server.jar file?
+- I found 2 releases of camel DAP server here - 
https://github.com/camel-tooling/camel-debug-adapter/tags but it doesn't 
contain any jar files. To get a jar file either you can compile the source or 
download from the Maven Central repository. 
+- To download from Maven Central repository
+```sh
+cd /home
+curl -LO 
https://repo1.maven.org/maven2/com/github/camel-tooling/camel-dap-server/0.4.0/camel-dap-server-0.4.0.jar
+  ```
+# Inside .vimrc file:
+```viml
+  call plug#begin()
+  " The default plugin directory will be as follows:
+  "   - Vim (Linux/macOS): '~/.vim/plugged'
+  "   - Vim (Windows): '~/vimfiles/plugged'
+  "   - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
+  " You can specify a custom plugin directory by passing it as the argument
+  "   - e.g. `call plug#begin('~/.vim/plugged')`
+  "   - Avoid using standard Vim directory names like 'plugin'
+  "
+  "
+  " Use release branch (recommend)
+  Plug 'neoclide/coc.nvim', {'branch': 'release'}
+  Plug 'puremourning/vimspector'
+  call plug#end()
+  
+  " https://github.com/puremourning/vimspector/blob/master/README.md#human-mode
+  let g:vimspector_enable_mappings = 'HUMAN'
+
+  " Vimspector key mappings 
+  nnoremap <Leader>dd :call vimspector#Launch()<CR>
+  nnoremap <Leader>dt :call vimspector#ToggleBreakpoint()<CR>
+  nnoremap <Leader>dc :call vimspector#Continue()<CR>
+  nnoremap <Leader>de :call vimspector#Reset()<CR>
+```
+
+# Configure camel-example Debug Gadget
+Place this content in `cust_camel-debug-adapter.json` in your vimspector 
directory (path might be different for you)
+```sh
+cd ~/.vim/plugged/vimspector/gadgets/linux/.gadgets.d
+```
+Vimspector adapter configuration:
+```json
+{
+  "adapters": {
+    "cust_camel-debug-adapter": {
+         "command": [
+        "java",
+        "-jar",
+        "/home/camel-dap-server-0.4.0.jar"
+         ]
+    }
+  }
+}
+```
+# Vimspector Config
+ Create a file called `.vimspector.json` in the project root and then place 
the following content
+
+ Vimspector debugger configuration:
+ ```json
+{
+  "configurations": {
+    "Camel Debug Adapter - Attach": {
+      "adapter": "cust_camel-debug-adapter",
+      "configuration": {
+        "request": "attach",
+        "sourcePaths": [ "${workspaceRoot}/src/main/java" ],
+        "hostName": "localhost",
+        "port": "${JVMDebugPort}",
+        "stepFilters": {
+          "skipClasses": [ "$$JDK" ]
+        }
+      }
+    }
+  }
+}
+```
+# How to attach camel application to vimspector for debugging
+
+* To test the camel application debugging need a working example. Lot of good 
examples are provided in this repo, 
[camel-examples](https://github.com/apache/camel-examples).
+
+* To enable Camel Textual Route debugging, you need to launch this examples 
with the profile `camel.debug`.

Review Comment:
   In fact i think that now we can use directly `mvn camel:debug` withotu 
adding a profile



##########
content/blog/2022/09/Vim dap/index.md:
##########
@@ -0,0 +1,213 @@
+---
+title: "Configure Camel Debug Adapter in Vim to enable Camel Textual Route 
debugging"
+date: 2022-09-13
+authors: [Navyashree0923]
+categories: ["Tooling"]
+preview: "Configure Camel Debug Adapter in Vim to enable Camel Textual Route 
debugging"
+---
+
+A month before it became easier to provide language support inside Vim, Neovim 
using coc.nvim -[See this blog post](/blog/2022/07/coc-nvim-camel-lsp/). It is 
now time to use Camel Debug Adapter in 
Vim[camel-tooling/camel-dap-client-vim](https://github.com/camel-tooling/camel-dap-client-vim).
+
+# VIM Debug Adapter client for Apache Camel
+
+I just got the debug integration for camel in vim running using 
vimspector(https://github.com/puremourning/vimspector).

Review Comment:
   ```suggestion
   I just got the debug integration for camel in vim running using 
[vimspector](https://github.com/puremourning/vimspector).
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to