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

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.