I'm trying to debug a C# application using SOSEX in WinDbg for 32 bit environment in .NET Framework 4.0. I use sosex.dll for 32 bit v4.0.
Here are the steps:
sxe ld:mscorlibsxe ld:clrjitloadPath to sosex.dll!mbp application.cs 34(this sets breakpoint at line 34)
It works fine here.
However, when I start WinDbg fresh and attach to the C# application.exe process and do the necessary steps, the breakpoint doesn't work.
One thing I have observed is that the first time I ran the lm command in WinDbg, the output showed only application.exe.
But the next time, the lm command showed all the modules already loaded (clrjit, mscorlib, etc.)
Is this why the breakpoint isn't working?