Table of Contents

ShowDebugMessageIfEnabled Procedure

Codeunit Debug Single Instance

Shows a blocking message to the user if "Debug Mode" is active. The user can choose to stop the running function by selecting cancel in the shown confirm message.

Overloads

Name Description
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.
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.

ShowDebugMessageIfEnabled(Text; Codeunit "QWETB Temp Blob") Procedure

Shows a blocking message to the user if "Debug Mode" is active. The user can choose to stop the running function by selecting cancel in the shown confirm message.

Signature

[NonDebuggable]
ShowDebugMessageIfEnabled(Code: Text; TempBlob: Codeunit "QWETB Temp Blob")

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

TempBlob Codeunit "QWETB Temp Blob"

The message to show, in the form of a blob.

ShowDebugMessageIfEnabled(Text; Codeunit "QWETB Temp Blob"; Boolean) Procedure

Shows a blocking message to the user. The user can choose to stop the running function by selecting cancel in the shown confirm message.

Signature

[NonDebuggable]
ShowDebugMessageIfEnabled(Code: Text; TempBlob: Codeunit "QWETB Temp Blob"; Forced: Boolean)

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

TempBlob Codeunit "QWETB Temp Blob"

The message to show, in the form of a blob. The message is limited to 10000000 characters, messages with more than 10000000 characters will be cut.

Forced Boolean

If true, the message will always be shown, even if "Debug Mode" is inactive.

ShowDebugMessageIfEnabled(Text; Text) Procedure

Shows a blocking message to the user if "Debug Mode" is active.

The user can choose to stop the running function by selecting cancel in the shown confirm message.

Signature

[NonDebuggable]
ShowDebugMessageIfEnabled(Code: Text; DebugMessage: Text)

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

DebugMessage Text

The message to show.

ShowDebugMessageIfEnabled(Text; Text; Boolean) Procedure

Shows a blocking message to the user. The user can choose to stop the running function by selecting cancel in the shown confirm message.

Signature

[NonDebuggable]
ShowDebugMessageIfEnabled(Code: Text; DebugMessage: Text; Forced: Boolean)

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

DebugMessage Text

The message to show.

Forced Boolean

If true, the message will always be shown, even if "Debug Mode" is inactive.

ShowDebugMessageIfEnabled(Text; Text; Boolean; Boolean) Procedure

Shows a blocking message to the user. The user can choose to stop the running function by selecting cancel in the shown confirm message.

Signature

[NonDebuggable]
ShowDebugMessageIfEnabled(Code: Text; DebugMessage: Text; Forced: Boolean; ReplaceNewLineCharacter: Boolean)

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

DebugMessage Text

The message to show.

Forced Boolean

If true, the message will always be shown, even if "Debug Mode" is inactive.

ReplaceNewLineCharacter Boolean

The "new line character" (\) will be replaced with new line if set to true, otherwise \ will be printed as-is.

ShowDebugMessageIfEnabled(Text; Text; Variant) Procedure

Shows a blocking message to the user if "Debug Mode" is active.

The user can choose to stop the running function by selecting cancel in the shown confirm message.

Signature

ShowDebugMessageIfEnabled(Code: Text; DebugMessage: Text; Parameter1: Variant)

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

DebugMessage Text

The message to show. Placeholder %1 is substituted with Parameter1.

Parameter1 Variant

Value that substitutes %1 in DebugMessage.

ShowDebugMessageIfEnabled(Text; Text; Variant; Variant) Procedure

Shows a blocking message to the user if "Debug Mode" is active.

The user can choose to stop the running function by selecting cancel in the shown confirm message.

Signature

ShowDebugMessageIfEnabled(Code: Text; DebugMessage: Text; Parameter1: Variant; Parameter2: Variant)

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

DebugMessage Text

The message to show. Placeholders (%1 .. %2) are substituted with the supplied parameters.

Parameter1 Variant

Value that substitutes %1 in DebugMessage.

Parameter2 Variant

Value that substitutes %2 in DebugMessage.

ShowDebugMessageIfEnabled(Text; Text; Variant; Variant; Variant) Procedure

Shows a blocking message to the user if "Debug Mode" is active.

The user can choose to stop the running function by selecting cancel in the shown confirm message.

Signature

ShowDebugMessageIfEnabled(Code: Text; DebugMessage: Text; Parameter1: Variant; Parameter2: Variant; Parameter3: Variant)

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

DebugMessage Text

The message to show. Placeholders (%1 .. %3) are substituted with the supplied parameters.

Parameter1 Variant

Value that substitutes %1 in DebugMessage.

Parameter2 Variant

Value that substitutes %2 in DebugMessage.

Parameter3 Variant

Value that substitutes %3 in DebugMessage.

ShowDebugMessageIfEnabled(Text; Text; Variant; Variant; Variant; Variant) Procedure

Shows a blocking message to the user if "Debug Mode" is active.

The user can choose to stop the running function by selecting cancel in the shown confirm message.

Signature

ShowDebugMessageIfEnabled(Code: Text; DebugMessage: Text; Parameter1: Variant; Parameter2: Variant; Parameter3: Variant; Parameter4: Variant)

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

DebugMessage Text

The message to show. Placeholders (%1 .. %4) are substituted with the supplied parameters.

Parameter1 Variant

Value that substitutes %1 in DebugMessage.

Parameter2 Variant

Value that substitutes %2 in DebugMessage.

Parameter3 Variant

Value that substitutes %3 in DebugMessage.

Parameter4 Variant

Value that substitutes %4 in DebugMessage.

ShowDebugMessageIfEnabled(Text; Record "QWETB tTempBlob" temporary) Procedure

Shows a blocking message to the user if "Debug Mode" is active. The user can choose to stop the running function by selecting cancel in the shown confirm message.

Deprecated

This procedure is deprecated and should not be used.

Reason: Use the overload that takes Codeunit "QWETB Temp Blob" instead. It offers better performance.
Deprecated since: 27.0

Signature

[Obsolete('Use the overload that takes Codeunit "QWETB Temp Blob" instead. It offers better performance.', '27.0')]
[NonDebuggable]
ShowDebugMessageIfEnabled(Code: Text; var tTempBlob: Record "QWETB tTempBlob" temporary)

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

var tTempBlob Record "QWETB tTempBlob" temporary

The message to show, in the form of a blob.

ShowDebugMessageIfEnabled(Text; Record "QWETB tTempBlob" temporary; Boolean) Procedure

Shows a blocking message to the user. The user can choose to stop the running function by selecting cancel in the shown confirm message.

Deprecated

This procedure is deprecated and should not be used.

Reason: Use the overload that takes Codeunit "QWETB Temp Blob" instead. It offers better performance.
Deprecated since: 27.0

Signature

[Obsolete('Use the overload that takes Codeunit "QWETB Temp Blob" instead. It offers better performance.', '27.0')]
[NonDebuggable]
ShowDebugMessageIfEnabled(Code: Text; var tTempBlob: Record "QWETB tTempBlob" temporary; Forced: Boolean)

Parameters

Code Text

Any code that identifies this call, so you know from where in the code this message is shown.

var tTempBlob Record "QWETB tTempBlob" temporary

The message to show, in the form of a blob. The message is limited to 10000000 characters, messages with more than 10000000 characters will be cut.

Forced Boolean

If true, the message will always be shown, even if "Debug Mode" is inactive.

This documentation is generated from Smart Toolbox v27.1