apupier commented on issue #116:
URL: https://github.com/apache/camel-karavan/issues/116#issuecomment-1103739576

   > cannot combine the task and the launch config, shoudl require extra 
configuration
   
   managed to have teh single-click working.
   
   .vscode/tasks.json:
   ```
   {
        // See https://go.microsoft.com/fwlink/?LinkId=733558
        // for the documentation about the tasks.json format
        "version": "2.0.0",
        "tasks": [
                {
                        "label": "Start Camel application in debug with Jbang",
                        "type": "shell",
                        "command": "jbang",
                        "args": [
                                "-Dcamel.jbang.version=3.16.0",
                                "camel@apache/camel",
                                "run",
                                "${relativeFile}",
                                "--max-messages=100",
                                "--logging-level=info",
                                "--reload",
                                "--dep=org.apache.camel:camel-debug"
                        ],
                        "group": "none",
                        "isBackground": true,
                        "problemMatcher": { // Problem matcher is mandatory to 
avoid a dialog warning on each launch but cannot find a good way to configure it
                                "owner": "camel",
                                "pattern": {
                                        "regexp": "^.*$"
                                },
                                "severity": "error",
                                "source": "maven",
                                "background": {
                                        "activeOnStart": true,
                                        "beginsPattern": "^.*$",
                                        "endsPattern": "^.*JMX Connector thread 
started and listening at.*$"
                                }
                        },
                        "presentation": {
                                "reveal": "always"
                        }
                }
        ]
   }
   ```
   
   .vscode/launch.json:
   ```
   {
        "version": "0.2.0",
        "configurations": [
                {
                        "name": "Run with Camel Debugger",
                        "type": "apache.camel",
                        "request": "attach",
                        "preLaunchTask": "Start Camel application in debug with 
Jbang" // This must match the label provided as 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: [email protected]

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

Reply via email to