Debug.WriteLine() is not hit

后端 未结 5 1949
时光取名叫无心
时光取名叫无心 2021-01-07 09:01

I am debugging a Windows service (by hitting F5 in Visual Studio 2010) using the following code:

In Program.cs file:

         


        
5条回答
  •  独厮守ぢ
    2021-01-07 09:27

    Seems the Debug symbols are missing.

    1. Clean your solution, restart Visual Studio, rebuild the solution.
    2. Make sure the Configuration Manager is in Debug mode.
    3. Check in Tools > Options > Debugging and Uncheck "Enable Just My Code"

    Happened to me and this seemed to help.

提交回复
热议问题