Click here to Skip to main content
15,797,721 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one C# windows form application under visual studio 2010,when I click debugging(F5) it build and run.
Then I click stop debugging,and click debugging again,this time nothing happen,the debugging icon(green arrow)turn dim and back to original again.

I try to restart the computer,visual studio and create a new solution then add old form and file to it,but it is still same.I keep click debugging and sometime it works,sometime not.I put several break points at my main form load and program.cs but it not even go into it.

I can run the build exe several time without any problem,or using run without debugging.

I found that create new solution and debug will work,but when I close visual studio and reload that solution again the debugging problem comes out.
I try to reset all visual studio settings but the problem still comes out.

Please help!
Updated 4-May-11 5:17am
johannesnestler 4-May-11 10:53am    
are you using COM or multithreading? Most likley your process doesn't shut down... if you run it without the visual studio host process, everything is fine?
tuolesi 4-May-11 10:57am    
no COM no multithreading.
I just create a new solution which contain a single form only but same problem.
NuttingCDEF 4-May-11 13:19pm    
Long shot - but have you checked the event logs for anything odd?

I found that when i double click launch the solution everything is fine.
Only when i use visual studio open recent solution the problem comes out.

Any idea and how to fix this?
Share this answer
saibk 19-Jun-14 5:07am    
Tuolesi, Double clicking helped when I faced this issue in real time in Visual Studio 2010, when debugger did not open suddenly. Thanks.
Are you sure your program is shutting down all the way? Check the task manager to make sure.
Share this answer
tuolesi 4-May-11 10:04am    

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900