I am building a .Net Profiler for some custom requirement where I need to capture the exception details even though it got handled properly in the code. To do so-
- I have implemented ICorProfilerCallback
- SetEventsMask for COR_PRF_MONITOR_EXCEPTIONS
- Implemented the ExceptionThrown callback
So far so good, I am getting callback for every exception being thrown. However, it gives OjbectID that is a pointer to the actual exception object. I want more details like the message, call stack, etc. about the exception.
How do I get object details from ObjectID?