Skip to content
FutureBlitz

    Install

    Import std.debug.debugger

    std.debug.debugger

    Breakpoint and IsDebuggerAttached, for a program's own debugging: a breakpoint written in its code, which stops in the debugger that's attached, and asking whether one is. Each asks the OS through the runtime.

    std/debug/debugger.fb

    Functions

    IsDebuggerAttached function

    Public Function IsDebuggerAttached(): Bool

    Whether a debugger is attached to the program, as the OS says: Windows', macOS's, and Linux's tell it, and another's is always False.

    std/debug/debugger.fb, line 12

    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.

    std/debug/debugger.fb, line 17

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