Why do my breakpoints duplicate in Visual Studio?

前端 未结 4 606
予麋鹿
予麋鹿 2021-01-11 16:16

I recently started having problems with breakpoints in Visual Studio 2010. When I set a breakpoint and then start debugging, another breakpoint appears on some other line ne

4条回答
  •  伪装坚强ぢ
    2021-01-11 16:36

    I suspect it is because of mismatched newline endings. I had similar issue - multiple lines were marked as breakpoint location (say, 10 lines). Later I found it was because of only \n or \r present, instead of CRLF sequence.

    Use Save-As, select Save With Encoding.. option under Save button in SaveAs dialog box.

提交回复
热议问题