VS2012 Breakpoints are not getting hit

后端 未结 24 1669
小鲜肉
小鲜肉 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条回答
  •  萌比男神i
    2020-12-13 13:22

    Some more stuff to try:

    • Check if the loaded symbols match the debugged executable:
      Open a VS command prompt and cd to the directory where the executable you debug resides. Then do a dumpbin /PDBPATH:VERBOSE MyServiceExecutable.exe and scan the output for "PDB age mismatch" (Ref: http://msdn.microsoft.com/en-us/library/44wx0fef.aspx)

    • Not sure about VS 2012, but older versions of VS had a bug where the wrong source file would be displayed, provided that you have two source files in your project that have the same name, even when they are located in different folders. So if your project contains another source file with the same name, see if renaming one of them helps. (Update: Seems VS 2012 is affected too.)

提交回复
热议问题