This is the built-in help made by Microsoft for the command 'Disable-DscDebug', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Stops debugging of DSC resources.
Disable-DscDebug [-AsJob] [-CimSession [<CimSession[]>]] [-ThrottleLimit [<Int32>]] [-Confirm] [-WhatIf] [<CommonParameters>]
The Disable-DscDebug cmdlet requests that the Desired State Configuration (DSC) engine stop debugging of DSC resources. This cmdlet has no effect if the DSC engine is not
currently in debugging mode.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=627546
Windows PowerShell Desired State Configuration Overview
Enable-DscDebug
Get-DscConfigurationStatus
Get-DscLocalConfigurationManager
Restore-DscConfiguration
Start-DscConfiguration
Test-DscConfiguration
<
Example 1: Stop resource debugging
PS C:\>Disable-DscDebug
This command indicates to the DSC engine on the Local Configuration manager (LCM) to stop resource debugging.
Example 2: Check the engine state and stop debugging
PS C:\>if((Get-DscLocalConfigurationManager).DebugMode -like '*Break*'){Disable-DscDebug}
This command checks the DSC engine state, and stops resource debugging only if it is already in debugging mode