Debugging doesn't start [closed]

2019-01-21 07:11发布

When I hit F5 (debugging mode) nothing happens. Building works correctly, exe file I can launch properly, but can't start debug. Why?

30条回答
何必那么认真
2楼-- · 2019-01-21 07:39

I have found a solution:

  1. Close your Visual studio solution
  2. Open your .csproj project header with notepad ++ for example.
  3. Search for Tag in the section
  4. Remove Config Tag completly
  5. Open your solution and for me now debug works on my project
查看更多
冷血范
3楼-- · 2019-01-21 07:39

What worked for me was completely deleting the solution folder (had to reboot Windows to be allowed to do this), and then getting it back from source control. Sounds drastic - but it doesn't actually take very long.

查看更多
孤傲高冷的网名
4楼-- · 2019-01-21 07:40

My experience with Visual Studio 2015, I tried deleting all processes and restarting it didn't work. I tried deleting the bin directory, it didn't work.

Sadly, the only thing that worked was closing down and restarting Visual Studio 2015 in Admin mode. Sigh...

查看更多
干净又极端
5楼-- · 2019-01-21 07:41

Same error, tried executing VS as Administrator and it worked.

查看更多
叼着烟拽天下
6楼-- · 2019-01-21 07:41

Using Visual Studio 2017. Had dozen projects in a solution. Pressing debug would build with no error then do nothing.
Issue was one Project built to .Net 4.6 while the rest where .Net 4.0

查看更多
趁早两清
7楼-- · 2019-01-21 07:42

I had this problem in a WPF application I was working on. When running the debugger, a process named MyApp.VsHost.exe would start and continue running in the background, but there would be no exceptions thrown and nothing in the Output window except build information.

It was because I had changed the namespace of my App class but did not update the Class attribute in App.xaml to match the new namespace. I changed the namespace in the xaml file and it worked again.

查看更多
登录 后发表回答