I have an application MyApp.exe. This app uses an assembly MyAssembly1.dll which itself refers to MyAssembly2.dll. Within MyAssembly2, I have a class MyClass that has a method MyMethod. This method is called after user go through several dialog etc.
If I launch this application from within Windbg, is there some way I can put a breakpoint on this method? The problem is that I don’t know when the MyAssembly2 is loaded by CLR
and this method get JITted?
The documentation on msdn for BPMD says
So you should be able to do !bpmd MyAssembly2.dll MyClass.MyMethod even if MyAssembly2.dll isn’t loaded yet, and when it loads the debugger will put in the breakpoint.