Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

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

This header is part of the diagnostics library.

NotebookLM

This header is part of the diagnostics library.

Functions

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

Synopsis

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

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.