Search code examples
visual-studiodebuggingvisual-studio-2015visual-studio-debugging

Visual Studio 2015 debugger closes application


Once I start any application from VS with debugger on Any CPU or x86, application exits immediately with exitcode 0. It works fine if I compile application for x64.

I have tried:

  • Reset VS Settings
  • Reinstall (repair) .NET
  • Check paths
  • Clean/Rebuild solution
  • Reboot PC

But it did not help.

What could be the issue and how to solve it?


Solution

  • The issue was in running regsvr process. Once I shut down the proccess, debugging started working without issue.