Skip to content
FutureBlitz

    Install

    Import std.debug.debugger

    Breakpoint

    std.debug.debugger

    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()

    std/debug/debugger.fb, line 34

    Report an issue with this page or with FutureBlitz on GitHub.