Home
Manage Your Code
Snippet: Toggle the Debugging Registry Switch for IE (PowerShell)
Title: Toggle the Debugging Registry Switch for IE Language: PowerShell
Description: Use this script to toggle if Script debugging is on or off for IE. Useful for when you are developing, but then you don't want to see all the script errors on other people's sites. Views: 521
Author: Michael Wood Date Added: 6/4/2008
Copy Code  
# Toggle the Script Debugging for IE
&{
$debugSetting = (Get-ItemProperty -path "HKCU:\software\Microsoft\Internet Explorer\Main\").DisableScriptDebuggerIE
if ($debugSetting -eq "yes")
{
$newValue = "no"
} else {
$newValue = "yes"
}
Set-ItemProperty -path "HKCU:\software\Microsoft\Internet Explorer\Main" -name "DisableScriptDebuggerIE" -value $newValue
}