Microsoft Visual Studio 2012 cannot set breakpoint in c# file

后端 未结 6 2038
面向向阳花
面向向阳花 2021-02-18 22:32

I have Microsoft Visual Studio Professional 2012 installed, version 11.0.60610.01 Update 3.

When debugging a c# (.cs) file Visual Studio gives me the following message

6条回答
  •  余生分开走
    2021-02-18 23:23

    If there is no instructions to execute on a line, VS refuses to set a breakpoint an offers no reason. EG

    string str; //Cannot set breakpoint
    string str = ""; //Can set breakpoint
    

提交回复
热议问题