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

Chapter 19. Disabling Breakpoints in a Running Context


Overview

You can disable and re-enable breakpoints in a running routing context in either Breakpoints view or on the canvas of the running CamelContext: <xxxxxx>. You can delete and reset a deleted breakpoint only on the canvas of the running CamelContext: <xxxxxx>.
Note
The string <xxxxxx> represents the ID that you or the debugger assigned to the camelContext element in the project's routing context file.
When a breakpoint is disabled, the button causes the debugger to skip over it during the debugging session.

Disabling and enabling breakpoints in Breakpoints view

Breakpoints view opens with all set breakpoints enabled.
To disable a breakpoint, clear its check box.
For each breakpoint you disable, Console view displays an INFO level log entry noting that it has been disabled (for example, Removing breakpoint to3). Likewise, for each breakpoint you re-enable, Console view displays an INFO level log entry noting that it has been enabled (for example, Adding breakpoint to3).
Note
To re-enable a disabled breakpoint, click its check box. Console view displays an INFO level log entry noting that the breakpoint has been added to the selected node.

Disabling and enabling breakpoints on the running CamelContext: canvas

Make sure the routing context running in memory, CamelContext: <xxxxxx>, is active on the canvas.
  1. On the canvas, select the node with the breakpoint you want to disable; for example:
    Note
    The icon denotes an unconditional breakpoint. A icon denotes a conditional breakpoint.
  2. Click the icon in the node's side bar.
    The icon replaces the icon in the node's upper left corner, indicating that the breakpoint is now disabled:
    The node's check box in Breakpoints view is clear, also indicating that the breakpoint is disabled:
    Console view contains a log of the event:
    Note
    To re-enable the breakpoint, select the node, and then click the icon in its side bar.

Deleting and resetting breakpoints on the running CamelContext: canvas

You can delete and reset deleted breakpoints only on the running CamelContext: <xxxxxx> canvas.
  1. On the CamelContext: <xxxxxx> canvas, select the node whose breakpoint you want to delete; for example, setHead_usa:
    Note that the node's breakpoint is enabled in Breakpoints view.
    Note
    In the above graphic, the dotted red line surrounding the setHead_usa node identifies the breakpoint on which the debugger is currently suspended.
  2. Click the icon in the node's side bar:
    The breakpoint is removed from the node on the canvas and also from the list of breakpoints in Breakpoints view:
    Note
    To reset the breakpoint, select the node, and then click the or icon in its side bar, depending on whether you want to set an unconditional or conditional breakpoint.

Related topics

Chapter 14, Setting Breakpoints
the section called “Disabling breakpoints”
the section called “Deleting breakpoints”
chapter "To Debug a Routing Context" in "Tooling Tutorials"
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.