管理断点

移动断点

移动断点

  • 将断点标记拖到文本编辑器中的另一行。
  • Breakpoint Preset 视图或Breakpoints 视图中,选择Edit Selected Breakpoints ,并在Line number 中设置行号。

    断点选项

删除断点

删除断点

  • 在文本编辑器中选择断点标记。
  • Breakpoint Preset 视图或Breakpoints 视图中:
    • 选择断点,然后选择删除
    • 在上下文菜单中选择Delete Selected BreakpointsDelete Selected BreakpointsDelete Breakpoints of File

打开和关闭断点

要临时关闭断点而不删除断点并丢失条件和命令等相关数据,请执行以下操作

  • 右键单击文本编辑器中的断点标记,然后选择Disable Breakpoint
  • 选择有断点的行,然后选择Ctrl+F9macOS 上为Ctrl+F8)。
  • Breakpoint Preset 视图或Breakpoints 视图中:
    • 选择断点并选择Space
    • 在上下文菜单中选择Disable Breakpoint

文本编辑器和视图中的空心断点图标表示已禁用断点。要重新启用断点,请使用上述任何一种方法。

除数据断点外,其他断点在调试程序重启时会保持启用或禁用状态。

另请参阅 "如何:调试"、"调试"、"调试器"和 "调试器"。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.