AnswerNote: The following procedure is the preferred method for gathering Windows debug logs for GFI WebMonitor and other products. It is only available in Windows Server 2008/Vista SP1 or higher.
This feature is not enabled by default. Enabling the feature requires administrator privileges. To enable and configure this feature, create the LocalDumps registry values under the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting key:
- Open the Windows registry editor (Start > Run > type regedit.exe and press Enter)
- Make a Backup copy of the registry
- Navigate to following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting
- If it does not exist, create the following key: LocalDumps.
- In this key, add the following values:
- Create an Expandable String value called DumpFolder with the following contents: C:\dumps; (choose your location here). It is recommended, not to use the root folder. Please, make sure the folder dumps do exists in the drive C.
- Create DWORD32 value DumpCount – assign 10 (decimal) to it
- Create DWORD32 value DumpType – assign 2 (decimal) to it
- Create DWORD32 CustomDumpFlags with 0 (decimal) in it
6. Restart the machine to apply the changes
After an application crashes and prior to its termination, the system will check the registry settings to determine whether a local dump is to be collected. After the dump collection has completed, the application will be allowed to terminate normally. If the application supports recovery, the local dump is collected before the recovery callback is called.
These dumps are configured and controlled independently of the rest of the Windows Error Reporting - WER infrastructure. You can make use of the local dump collection even if WER is disabled or if the user cancels WER reporting. The local dump can be different than the dump sent to Microsoft.