此内容没有您所选择的语言版本。

Chapter 2. Debug Perspective


Overview

The Debug perspective, shown in Figure 2.1, provides access to all of the Camel debugger's functions. It contains all of the views used to monitor and debug a running routing context.

Figure 2.1. Debug perspective

Camel Context debugger
  • Debug view
    For the running routing context, Debug view displays the debug stack.
    You can switch between breakpoints within the same message flow, listed under the Camel Context at service:jmx:rmi://jndi/rmi://localhost:1099/jmxrmi/camel entry, to review and compare variable values in Variables view.
    Messages flows are identified by their unique breadcrumb ID, and the breadcrumb ID of each subsequent message flow is incremented by 2. For example, in Figure 2.1, “Debug perspective”, the breadcrumb ID for the first message flow is ID-janemurpheysmbp-home-61339-11430424775526-0-1, so the breadcrumbID for the second message flow would be ID-janemurpheysmbp-home-61339-11430424775526-0-3.
  • Variables view
    For each node in the routing context that has a breakpoint set, Variables view displays the value of the available variables when the breakpoint is hit. Each variable who's value changed since the preceding breakpoint is highlighted in yellow.
    You can change the value of editable variables to check whether such changes produce the expected results and to test the robustness of your routing context.
    You can also add variables to the watch list, so you can quickly and easily see whether their values change as expected at the expected point in the message flow.
  • Breakpoints view
    Displays a list of the breakpoints set in the routing context, and shows whether they are enabled or disabled. You can enable and disable individual breakpoints by checking (enabling) or unchecking (disabling) them. This enables you to temporarily focus on nodes in your routing context that are behaving problematically.
    The button skips over disabled breakpoints to jump to the next active breakpoint in the routing context. In contrast, the button jumps to the next node of execution in the routing context, regardless of breakpoints.
  • Camel Context: view
    Displays the running CamelContext:<CamelId>.xml in graphical mode. For nodes set with breakpoints, it shows the type of breakpoint set and whether the breakpoint is enabled or disabled. When a breakpoint is hit, its corresponding node on the canvas is outlined in red.
    To check a node's configuration, open Properties view and then select the node on the canvas in Camel Context: view.
  • Console view
    Displays the log output generated by the Camel debugger as it executes the routing context.
  • Properties view
    Displays the properties set for the node selected on the canvas in CamelContext: view.

Related topics

Part III, “Debugging Routing Contexts”
chapter "To Debug a Routing Context" in "Tooling Tutorials"
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.