[ 
https://issues.apache.org/jira/browse/CAMEL-21612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17912555#comment-17912555
 ] 

Aurélien Pupier commented on CAMEL-21612:
-----------------------------------------

effectively without the option it is working with 4.9 too:

{noformat}
jbang '-Dcamel.jbang.version=4.9.0' '-Dorg.apache.camel.debugger.suspend=true' 
camel@apache/camel run test-with-4_9_0.camel.yaml --dev --logging-level=info 
'--dep=org.apache.camel:camel-debug'
2025-01-13 15:35:13.435  INFO 4004631 --- [           main] 
org.apache.camel.main.MainSupport        : Apache Camel (JBang) 4.9.0 is 
starting
2025-01-13 15:35:13.712  INFO 4004631 --- [           main] 
org.apache.camel.main.MainSupport        : Using Java 21.0.3 with PID 4004631. 
Started by apupier in /home/apupier/ws/demo/a sub folder
2025-01-13 15:35:18.722  INFO 4004631 --- [           main] 
.main.download.MavenDependencyDownloader : Downloading: 
org.apache.camel:camel-debug:4.9.0 (elapsed: 5s)
2025-01-13 15:35:21.858  INFO 4004631 --- [           main] 
.main.download.MavenDependencyDownloader : Resolved: 
org.apache.camel:camel-debug:4.9.0 (took: 8s136ms)
2025-01-13 15:35:22.090  INFO 4004631 --- [           main] 
org.apache.camel.main.ProfileConfigurer  : The application is starting with 
profile: dev
2025-01-13 15:35:22.732  INFO 4004631 --- [           main] 
he.camel.cli.connector.LocalCliConnector : Camel JBang CLI enabled
2025-01-13 15:35:22.733  INFO 4004631 --- [           main] 
e.camel.impl.engine.AbstractCamelContext : Detected: camel-debug JAR (Enabling 
Camel Debugging)
2025-01-13 15:35:22.739  INFO 4004631 --- [           main] 
mel.impl.debugger.DefaultBacklogDebugger : Waiting for a debugger to attach
2025-01-13 15:35:22.930  INFO 4004631 --- [           main] 
e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.9.0 (test-with-4_9_0) 
is starting
2025-01-13 15:35:23.196  INFO 4004631 --- [           main] 
upport.FileWatcherResourceReloadStrategy : Live route reloading enabled 
(directory: .)
2025-01-13 15:35:23.337  INFO 4004631 --- [gerJMXConnector] 
mpl.debugger.DebuggerJmxConnectorService : Debugger JMXConnector listening at: 
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/camel
2025-01-13 15:35:23.478  INFO 4004631 --- [           main] 
e.camel.impl.engine.AbstractCamelContext : Routes startup (total:1)
2025-01-13 15:35:23.479  INFO 4004631 --- [           main] 
e.camel.impl.engine.AbstractCamelContext :     Started route1 (timer://yaml)
2025-01-13 15:35:23.481  INFO 4004631 --- [           main] 
e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.9.0 (test-with-4_9_0) 
started in 549ms (build:0ms init:0ms start:549ms boot:9s491ms)
2025-01-13 15:35:23.482  INFO 4004631 --- [           main] 
mel.impl.debugger.DefaultBacklogDebugger : Enabling Camel debugger
{noformat}

> [Regression] Camel JMX debugger is no more activated with 
> org.apache.camel:camel-debug dependency
> -------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-21612
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21612
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.9.0
>            Reporter: Aurélien Pupier
>            Priority: Minor
>
> working with 4.8.2
> {noformat}
> jbang '-Dcamel.jbang.version=4.8.2' 
> '-Dorg.apache.camel.debugger.suspend=true' camel@apache/camel run 
> test-with-4_8_2.camel.yaml --dev --logging-level=info 
> '--dep=org.apache.camel:camel-debug' --local-kamelet-dir=. 
> 2025-01-13 14:54:41.775  INFO 3939143 --- [           main] 
> org.apache.camel.main.MainSupport        : Apache Camel (JBang) 4.8.2 is 
> starting
> 2025-01-13 14:54:42.129  INFO 3939143 --- [           main] 
> org.apache.camel.main.MainSupport        : Using Java 21.0.3 with PID 
> 3939143. Started by apupier in /home/apupier/ws/demo/a sub folder
> 2025-01-13 14:54:43.681  INFO 3939143 --- [           main] 
> .main.download.MavenDependencyDownloader : Downloaded: 
> org.apache.camel:camel-debug:4.8.2 (took: 1s536ms) from: 
> central@https://repo1.maven.org/maven2
> 2025-01-13 14:54:43.907  INFO 3939143 --- [           main] 
> org.apache.camel.main.ProfileConfigurer  : The application is starting with 
> profile: dev
> 2025-01-13 14:54:44.575  INFO 3939143 --- [           main] 
> he.camel.cli.connector.LocalCliConnector : Camel JBang CLI enabled
> 2025-01-13 14:54:44.576  INFO 3939143 --- [           main] 
> e.camel.impl.engine.AbstractCamelContext : Detected: camel-debug JAR 
> (Enabling Camel Debugging)
> 2025-01-13 14:54:44.587  INFO 3939143 --- [           main] 
> mel.impl.debugger.DefaultBacklogDebugger : Waiting for a debugger to attach
> 2025-01-13 14:54:44.799  INFO 3939143 --- [           main] 
> e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.8.2 
> (test-with-4_8_2) is starting
> 2025-01-13 14:54:44.972  INFO 3939143 --- [           main] 
> upport.FileWatcherResourceReloadStrategy : Live route reloading enabled 
> (directory: .)
> 2025-01-13 14:54:45.069  INFO 3939143 --- [gerJMXConnector] 
> mpl.debugger.DebuggerJmxConnectorService : Debugger JMXConnector listening 
> at: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/camel
> 2025-01-13 14:54:45.197  INFO 3939143 --- [           main] 
> e.camel.impl.engine.AbstractCamelContext : Routes startup (total:1)
> 2025-01-13 14:54:45.198  INFO 3939143 --- [           main] 
> e.camel.impl.engine.AbstractCamelContext :     Started route1 (timer://yaml)
> 2025-01-13 14:54:45.198  INFO 3939143 --- [           main] 
> e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.8.2 
> (test-with-4_8_2) started in 398ms (build:0ms init:0ms start:398ms)
> {noformat}
> no more working with Camel 4.9.0:
> {noformat}
> jbang '-Dcamel.jbang.version=4.9.0' 
> '-Dorg.apache.camel.debugger.suspend=true' camel@apache/camel run 
> test-with-4_9_0.camel.yaml --dev --logging-level=info 
> '--dep=org.apache.camel:camel-debug' --local-kamelet-dir=. 
> 2025-01-13 14:53:15.468  INFO 3936155 --- [           main] 
> org.apache.camel.main.MainSupport        : Apache Camel (JBang) 4.9.0 is 
> starting
> 2025-01-13 14:53:15.974  INFO 3936155 --- [           main] 
> org.apache.camel.main.MainSupport        : Using Java 21.0.3 with PID 
> 3936155. Started by apupier in /home/apupier/ws/demo/a sub folder
> 2025-01-13 14:53:16.307  INFO 3936155 --- [           main] 
> org.apache.camel.main.ProfileConfigurer  : The application is starting with 
> profile: dev
> 2025-01-13 14:53:16.901  INFO 3936155 --- [           main] 
> he.camel.cli.connector.LocalCliConnector : Camel JBang CLI enabled
> 2025-01-13 14:53:17.114  INFO 3936155 --- [           main] 
> e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.9.0 
> (test-with-4_9_0) is starting
> 2025-01-13 14:53:17.402  INFO 3936155 --- [           main] 
> upport.FileWatcherResourceReloadStrategy : Live route reloading enabled 
> (directory: .)
> 2025-01-13 14:53:17.641  INFO 3936155 --- [           main] 
> e.camel.impl.engine.AbstractCamelContext : Routes startup (total:1)
> 2025-01-13 14:53:17.641  INFO 3936155 --- [           main] 
> e.camel.impl.engine.AbstractCamelContext :     Started route1 (timer://yaml)
> 2025-01-13 14:53:17.642  INFO 3936155 --- [           main] 
> e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.9.0 
> (test-with-4_9_0) started in 526ms (build:0ms init:0ms start:526ms 
> boot:1s639ms)
> {noformat}
> it is affecting debug functionality in VS Code



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to