On Tue, 4 Jan 2022 at 15:04, Ben Craig via SG15 <sg15@lists.isocpp.org> wrote:IMO, we need a function that is an unconditional breakpoint, similar to what the various compile builtins already provide. This could be in addition to the conditional breakpoint. The conditional breakpoint can be built from the unconditional breakpoint + is_debugger_present, so we should provide the lower level building block.
My personal preference is that the unconditional breakpoint gets the “good” name of std::breakpoint, but I can live with the conditional breakpoint getting the good name.
Or make it std::breakpoint(bool).