VS2012 Breakpoints are not getting hit

后端 未结 24 1662
小鲜肉
小鲜肉 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:23

    This sounds like the pdb files are not updated in your test sandbox.

    1) Ensure that you are in debug mode.

    2) Can you try and include a deployment item for the pdb files explicitly?

    • You said that you can attach a debug point in your test project.
    • Once you have hit the debug point in your test project , check to make sure the pdb files with the latest time stamp is present in the Out folder of your sandbox.

    3) If 1 and 2 fail , I have found that sometimes visual studio requires a restart :)

提交回复
热议问题