Disable ‘Application Debug/Close’ Popup On Program Crash

By default in Windows Vista, 7 and upwards, when an application crashes, Windows pops up the common Application Debug Close popup window an example of which is shown below:












Sometimes this can be a problem specially if you are running automated tests and you do not want to have to manually press any keys or if you just want your application to crash without this popup window.

The best way to do that is to use Gepedit.msc.

  1. Go to Start. Type gpedit.msc
  2. Navigate to Computer Configuration->Administrative Templates->Windows Components->Windows Error Reporting
  3. On the right pane, click on “Prevent display of the user interface for critical errors” and set it to Enabled.












This will disable the popup from showing up.



  1. Thank you for your post. In fact, I wanted the opposite: to show the debug close window when the application crashes. I am a developer for server code and once a while there is a crash, however I want to see the internal message log, typically displaying the assertion failure with the .cpp and line of code where the problem was detected before the application crashed. When Windows close the application immediately, it is very difficult to find the bug. Thanks again.

Leave a Reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.