Este conteúdo não está disponível no idioma selecionado.

Chapter 18. 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 13, Setting Breakpoints
the section called “Disabling breakpoints”
the section called “Deleting breakpoints”
chapter "To Debug a Routing Context" in "Tooling Tutorials"
Red Hat logoGithubRedditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja oBlog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

© 2024 Red Hat, Inc.