I could do the same steps without Trace.Fail and stop the execution in the debugger manually, but this way I can’t find the place in the program I want to examine, because the final code is a heavily optimized mess. I need to mark somehow the right spot in the program but don’t know how.
Do you have a good way to get to the IL period? I was hoping View > Show disassembly in MonoDevelop would do the trick, but all it shows is the source without syntax colouring. I can open my script assembly with ILSpy, but is there a convenient way to view IL from within MonoDevelop? Thanks!
For those who used Reflector before it became paid, there’s a free version 6.8 that works like the previous ones, but never expires. I personally see no reason to update.
I have found a way to replace Trace.Fail(). I simply put an infinite loop instead. And when the program hangs I attach the debugger and find myself inside that loop.