Visual Studio exits debugging without any exceptions or errors.

I have a TCP/CLIENT game server project in Visual Studio 2010 . When I start the project in debug mode, some time later (sometimes 1 day, sometimes 1 week) Visual Studio completes debugging without any exceptions or errors. I checked the windows and the application log, and there is nothing unexpected.

How can I find out what the real problem is or what (for example, some exceptions like stackoverflow) can lead to debugging Visual Studio output?

+7
source share
3 answers

I assume your application is multithreaded. In this case, an uncaught exception in the background thread will crash your application. It will also stop your debugger, since it cannot debug all threads at once and must be manually copied to a specific thread using the Themes window. So the solution is to catch the exceptions in the async handlers and at least register them.

+3
source

This worked for me (for a similar problem - not quite so); try resetting the Visual Studio environment:

 devenv.exe /ResetSettings 
0
source

If you are running something as a server in IIS, you can try disabling health monitoring for your server project. Open IIS and right-click the application pool. Find the Ping enabled parameter, it is in the advanced settings and set it to False . Another option is to increase the maximum response time. I think this is the best solution. Set it for about 600 seconds.

If you are debugging a week, use intellitrace . You can use this youtube video about intellitrace in Visual Studio 2010 as a reference.

0
source

All Articles