0
Answer

can not set breakpoint

Ask a question
George George

George George

16y
2.1k
1

Hello everyone,


When using WinDbg to debug the following simple application, after loading SOS, then I type "!bpmd TestDebugManaged1.exe Program.Foo" to set a breakpoint, there is the error message -- "Found 0 methods...". What is wrong with my input?

[Code]
namespace TestDebugManaged1
{
    class Program
    {
        void foo()
        {
            int a = 100;
            while (true)
            {
                Thread.Sleep(10000);
                a++;
            }
        }
       
        static void Main(string[] args)
        {
            Program instance = new Program();
            instance.foo();
            return;
        }
    }
}
[/Code]


thanks in advance,
George