Debug.WriteLine() is not hit

后端 未结 5 1970
时光取名叫无心
时光取名叫无心 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条回答
  •  猫巷女王i
    2021-01-07 09:17

    Navigate to Project Properties -> Build and be sure that "Define DEBUG Constant" and "Define TRACE Constant" checkboxes are checked.

提交回复
热议问题