Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::breakp...f_debugging(3)  C++ Standard Libary std::breakp...f_debugging(3)

NAME
       std::breakpoint_if_debugging - std::breakpoint_if_debugging

Synopsis
	  Defined in header <debugging>
	  void breakpoint_if_debugging() noexcept;  (since C++26)

	  Conditional  breakpoint:  attempts to	temporarily halt the execution
       of the program
	  and transfer control to the debugger if it were  able	 to  determine
       that the	debugger
	  is present. Acts as a	no-op otherwise.

	  Formally,  the  behavior  of this function is	completely implementa-
       tion-defined.
	  Equivalent to	if (std::is_debugger_present())
	      std::breakpoint();.

Notes
	  Feature-test macro   Value	Std		    Feature
	  __cpp_lib_debugging 202311L (C++26) Debugging	support	library
			      202403L	(C++26)	  Replaceable	std::is_debug-
       ger_present

Example
	   This	section	is incomplete
	   Reason: no example

See also
	  is_debugger_present  checks  whether	a program is running under the
       control of a
	  (C++26)	      debugger
			      (function)
	  breakpoint	      pauses the running program when called
	  (C++26)	      (function)

Category:
	    * Todo no example

http://cppreference.com		  2024.06.10	  std::breakp...f_debugging(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::breakpoint_if_debugging&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help