Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::breakpoint_if_debugging

      From cppreference.com
      <cpp‎ |utility
       
       
      Diagnostics library
       
      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 implementation-defined. Equivalent toif(std::is_debugger_present())
         std::breakpoint();
      .

      [edit]Notes

      Feature-test macroValueStdFeature
      __cpp_lib_debugging202311L(C++26)Debugging support library
      202403L(C++26)Replaceablestd::is_debugger_present

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      checks whether a program is running under the control of a debugger
      (function)[edit]
      (C++26)
      pauses the running program when called
      (function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/utility/breakpoint_if_debugging&oldid=177403"

      [8]ページ先頭

      ©2009-2025 Movatter.jp