[
https://issues.apache.org/jira/browse/CAMEL-22758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043236#comment-18043236
]
Claus Ibsen commented on CAMEL-22758:
-------------------------------------
Notice how the log line is -1
> camel-jbang - Debug inside choice may not correlate to source location
> ----------------------------------------------------------------------
>
> Key: CAMEL-22758
> URL: https://issues.apache.org/jira/browse/CAMEL-22758
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 4.17.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.17.0
>
>
> Notice this while debugging a little java app
> {code:java}
> Source: bar.java
> History
> --------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------------------
> 4:
> 0 (0ms) route1/from1 7: timer:java?period=1000
> 5: @Override
> 1 (1ms) route1/setBody1 8: setBody[simple{Hello
> Camel
> 6: public void configure() throws Exception {
> 2 (8963ms) route1/choice1 10: choice[when[{body
> contains
> 7: <--* from("timer:java?period=1000")
> 3 (1ms) route1/log2 -1: log[Yeah here is a
> Camel]
> 8: .setBody()
> 4 (1ms) route1/log4 19: log[complete]
> 9: .simple("Hello Camel from ${routeId}")
> 10: .choice()
> 11: .when(body().contains("world"))
> 12: .log("Stop the world")
> 2025-12-06 14:10:10.566 47192 --- [ thread #6 - timer://java]
> route1/*<-- : 12 - Completed (success) (116ms)
> Exchange (DefaultExchange) InOnly 0B9FFAFAE3E77CA-0000000000000001
> Message (DefaultMessage)
> Body (String) (bytes: 23)
> Hello Camel from route1
> Breakpoint suspended. Press ENTER to continue (q = quit). {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)