Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reactivate Windows Error Reporting for my application (cpp)? (Windows 10)

TLDR

When one of my applications executes _CrtDbgBreak() it just writes a .dmp file and exits. On any other application _CrtDbgBreak() causes the app.exe has stopped working -dialog where I can chose to break into my debugger (VS 2013).

This is my desired behavior.

Background

A few weeks ago I experimented with Windows Error Reporting to find out if/how the WER Dialog could be suppressed. Apparently I succeeded for my application and unfortunately I haven't found the way how to undo this.

In the meantime I have had to deal with a number of other things so that I no longer remember which steps I exactly took at the time. (Should have taken notes, I know.) Since it works for other applications, I am guessing a setting specific to my app needs to be reset.

I turned to the usual suspects on my machine but so far I haven't found anything:

  • HKCU\Software\Microsoft\Windows\Windows Error Reporting
  • HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting
  • Policy Editor: Computer Configuration\Administrative Templates\Windows Components\Windows Error Reporting
  • Policy Editor: User Configuration\Administrative Templates\Windows Components\Windows Error Reporting
  • WER Service is running

I have even removed all occurrences of my executable's name from my entire registry but this hasn't made any difference. What else am I missing?

like image 989
wickie Avatar asked Mar 07 '26 22:03

wickie


1 Answers

One possible reason is your app/exe is added to the WER's exclusion list. See 'ExcludedApplications' at https://learn.microsoft.com/en-us/windows/desktop/wer/wer-settings.

https://learn.microsoft.com/en-us/windows/desktop/api/Werapi/nf-werapi-weraddexcludedapplication

Check registry at: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\ExcludedApplications

If your app/exe name is found there, remove it.

like image 106
shnara Avatar answered Mar 10 '26 16:03

shnara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!