Import std.debug.debugger
Breakpoint
function
Public Function Breakpoint()
Stops in the debugger that's attached, as a breakpoint set there would, and does nothing when none is, so one left in a program that runs without a debugger doesn't end it, nor one that runs under a tracer that hands the trap back, as strace does.
Examples
// Stops here in a debugger, and goes on without one.
If IsDebuggerAttached() Then Breakpoint()Report an issue with this page or with FutureBlitz on GitHub.