Turn on the display of script errors
Activer l’affichage des erreurs de script
Explanation
This policy setting specifies whether to display script errors when a page does not appear properly because of problems with its scripting. This feature is off by default, but it is useful to developers when they are testing webpages.
If you enable this policy setting, the user is shown script errors when a page does not appear properly because of problems with its scripting. The user cannot change this policy setting.
If you disable this policy setting, the user is not shown script errors when a page does not appear properly because of problems with its scripting. The user cannot change this policy setting.
If you do not configure this policy setting, the user can turn on or turn off the display of script errors.
Ce paramètre de stratégie spécifie d’afficher ou non les erreurs de script lorsqu’une page ne s’affiche pas correctement en raison de problèmes de script. Cette fonctionnalité est désactivée par défaut, mais elle est utile aux développeurs qui testent des pages Web.
Si vous activez ce paramètre de stratégie, les erreurs de script sont affichées lorsqu’une page n’apparaît pas correctement en raison de problèmes de script. L’utilisateur ne peut pas modifier ce paramètre de stratégie.
Si vous désactivez ce paramètre de stratégie, les erreurs de script ne sont pas affichées lorsqu’une page n’apparaît pas correctement en raison de problèmes de script. L’utilisateur ne peut pas modifier ce paramètre de stratégie.
Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut activer ou désactiver l’affichage des erreurs de script.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main- Value name
Error Dlg Displayed On Every Error
| State | Value written |
|---|---|
| Enabled | REG_SZ = yes |
| Disabled | REG_SZ = no |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: inetres/ScriptErrorCache
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Error Dlg Displayed On Every Error' -Value 'yes' -Type StringDisable
# Disable: inetres/ScriptErrorCache
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Error Dlg Displayed On Every Error' -Value 'no' -Type StringRevert to "Not configured"
# Revert to "Not configured": inetres/ScriptErrorCache
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'Error Dlg Displayed On Every Error' -ErrorAction SilentlyContinue