Show / Hide Table of Contents

    Debug Single Instance

    Provides functions that can be added to code that needs to be troubleshooted without a debugger.

    Object Definition

    Object TypeCodeunit
    Object ID70327081
    Object NameQWETB Debug Single Instance

    Procedures

    Name Description
    AddMaskedString(Text) Used to add texts that should be masked when shown in the debug messages or logged.
    ClearMaskedStrings() Clears any strings that has been added with the AddMaskedString() function. This should be called after all debug messages has been shown or logged.
    FlushDebugMessagesToDb(Boolean) Saves all log entries that are stored in-memory to the database.
    GetDebugActive(): Boolean Returns if "Debug Mode" is active or not.
    GetDebugFlagActive(Text[100]): Boolean Gets if a Debug Flag is active or not.
    GetLoggingActive(): Boolean Returns if "Logging Mode" is active or not.
    LogDebugMessageIfEnabled(Variant; Text; Text) Saves a message to the log if "Logging Mode" is active.
    LogDebugMessageIfEnabled(Variant; Text; Text; Boolean) Saves a message to the log if "Logging Mode" is active.
    SetDebugActive(Boolean) Activate or inactivate the "Debug Mode".
    SetLoggingActive(Boolean) Activate or inactivate the "Logging Mode".
    ShowDebugMessageIfEnabled(Text; Codeunit "QWETB Temp Blob") Shows a blocking message to the user if "Debug Mode" is active.
    ShowDebugMessageIfEnabled(Text; Codeunit "QWETB Temp Blob"; Boolean) Shows a blocking message to the user.
    ShowDebugMessageIfEnabled(Text; Text) Shows a blocking message to the user if "Debug Mode" is active.
    ShowDebugMessageIfEnabled(Text; Text; Boolean) Shows a blocking message to the user.
    ShowDebugMessageIfEnabled(Text; Text; Boolean; Boolean) Shows a blocking message to the user.
    ShowDebugMessageIfEnabled(Text; Text; Variant) Shows a blocking message to the user if "Debug Mode" is active.
    ShowDebugMessageIfEnabled(Text; Text; Variant; Variant) Shows a blocking message to the user if "Debug Mode" is active.
    ShowDebugMessageIfEnabled(Text; Text; Variant; Variant; Variant) Shows a blocking message to the user if "Debug Mode" is active.
    ShowDebugMessageIfEnabled(Text; Text; Variant; Variant; Variant; Variant) Shows a blocking message to the user if "Debug Mode" is active.
    ShowMessageIfDebugFlagActive(Text[100]; Codeunit "QWETB Temp Blob"; Boolean) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Codeunit "QWETB Temp Blob"; Boolean; Boolean) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Boolean) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Boolean; Boolean) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Boolean; Variant) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Boolean; Variant; Variant) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Boolean; Variant; Variant; Variant) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Boolean; Variant; Variant; Variant; Variant) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Codeunit "QWETB Temp Blob"; Boolean; Boolean) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Text; Boolean; Boolean) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Variant) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Variant; Variant) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Variant; Variant; Variant) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Variant; Variant; Variant; Variant) Shows a blocking message to the user if the Debug Flag is active.

    Deprecated Procedures

    Name Description
    ShowDebugMessageIfEnabled(Text; Record "QWETB tTempBlob" temporary) Shows a blocking message to the user if "Debug Mode" is active.
    ShowDebugMessageIfEnabled(Text; Record "QWETB tTempBlob" temporary; Boolean) Shows a blocking message to the user.
    ShowMessageIfDebugFlagActive(Text[100]; Record "QWETB tTempBlob" temporary; Boolean) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Record "QWETB tTempBlob" temporary; Boolean; Boolean) Shows a blocking message to the user if the Debug Flag is active.
    ShowMessageIfDebugFlagActive(Text[100]; Text; Record "QWETB tTempBlob" temporary; Boolean; Boolean) Shows a blocking message to the user if the Debug Flag is active.

    Events

    Name Description
    OnInitializeDebugFlags(Codeunit "QWETB Debug Flags") Raised when debug flags is used for the first time each session.

    This documentation is generated from Smart Toolbox v27.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX