Namespaces
Variants
Views
Actions

Standard library header <debugging> (C++26)

From cppreference.com
< cpp‎ | header
Revision as of 19:52, 30 October 2024 by Cooky (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
Standard library headers
 

This header is part of the diagnostics library.

Functions

pauses the running program when called
(function) [edit]
calls std::breakpoint if std::is_debugger_present returns true
(function) [edit]
checks whether a program is running under the control of a debugger
(function) [edit]

[edit] Synopsis

// all freestanding
namespace std {
  // debugging utility
  void breakpoint() noexcept;
  void breakpoint_if_debugging() noexcept;
  bool is_debugger_present() noexcept;
}