VS2012 Breakpoints are not getting hit

后端 未结 24 1645
小鲜肉
小鲜肉 2020-12-13 12:44

I have a class that looks like this:

public class MyService
{
    private MyService(){}
    public static string GetStuff()
    {
        var stuffDid = new          


        
24条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 13:28

    I've recently had the same problem and was smashing my head against the wall.

    The answer turned out to be pretty silly: Somehow my test project got out of sync with the main library project. I was building the debug versions of the test and library, but the test project copied the library from the bin/Release folder. I just recreated the project reference and everything was fixed.

    P.S. It was even criazier: the debugger went inside a library function, but somehow skipped one line in the middle of it.

提交回复
热议问题