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

Chapter 15. Starting the Camel Debugger


Overview

Note
You must set breakpoints in your routing context file before you can start the Camel debugger.
You run the Camel debugger on the routing context file, so be sure to save any changes you made to the file before you invoke the debugger. Otherwise your changes will not be included in the debugging session.

Procedure

  1. In Project Explorer, select the routing context file you want to debug.
  2. Right-click it to open the context menu, and then select Debug As... Local Camel Context.
    Fuse Tooling builds the Camel route, starts up Apache Camel, starts the routing context, enables JMX, starts the route(s) in the routing context, adds the breakpoints to the nodes, and enables the Camel debugger.
    The Camel debugger suspends execution of the routing context at the first breakpoint it encounters, and asks whether you want it to open the Debug perspective.
  3. Click Yes to open Debug perspective.
    Debug perspective opens with the routing context suspended at the first breakpoint in the running routing context.
    Important
    Breakpoints are held for a maximum of five minutes, after which debugging automatically resumes, moving on to the next breakpoint or to the end of the routing context if there are no more breakpoints.
    Note
    To see the console output, you'll need to open Console view if it was not open when you switched perspectives.
    Note
    By default, Debug perspective opens displaying Outline view, which provides the means to switch between separate routes in a routing context. If your routing context contains a single route, closing Outline view will provide more space to expand the other views, making it easier to access and examine debugger output.

Watching message exchanges progress through the routing context

Click (Step Over) to jump to the next node of execution in the routing context. Click (Resume) to continue execution at the next active breakpoint in the routing context.

Related topics

Chapter 16, Stopping the Camel Debugger
chapter "To Debug a Routing Context" in "Tooling Tutorials"
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.