标准库标头 <debugging> (C++26)

< cpp‎ | header


此头文件是通用工具库的一部分。

函数

(C++26)
当调用时暂停运行中的程序
(函数)
如果 std::is_debugger_present 返回 true 则调用 std::breakpoint
(函数)
检查程序是否在调试器的控制下运行
(函数)

概要

// 全为独立
namespace std {
  // 调试工具
  void breakpoint() noexcept;
  void breakpoint_if_debugging() noexcept;
  bool is_debugger_present() noexcept;
}