Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

Chapter 16. Changing Variable Values


Overview

When the Camel debugger hits a breakpoint, Variables view displays the values of all variables available at that point in the routing context. Some variables are editable, allowing you to change their value. This enables you to see how the application handles changes in program state.
Note
Not all variables are editable. The context menu of those that are displays the option, Change Value....

Procedure

To change the value of a variable:
  1. If necessary, start up the debugger. See Chapter 14, Starting the Camel Debugger.
  2. In Variables view, select a variable whose value you want to change, and then click its Value field.
    The variable's value field turns a lighter shade of blue, indicating it is in edit mode.
    Note
    Alternatively, you can right-click the variable to open its context menu, and select Change Value... to edit its value.
  3. Enter the new value and then click Enter.
    Console view displays an INFO level log entry noting the change in the variable's value (for example, Breakpoint at node to1 is updating message header on exchangeId: ID-dhcp-97-16-bos-redhat-com-52574-1417298894070-0-2 with header: Destination and value: ChangedTarget).
  4. Continue stepping through the breakpoints and check whether the message is processed as expected. At each step, check Debug view, Variables view, and the Console output.

Related topics

Chapter 18, Disabling Breakpoints in a Running Context
Chapter 17, Adding Variables to the Watch List
chapter "To Debug a Routing Context" in "Tooling Tutorials"
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat