Hi,
I am developing a .Net profiler using instrumentation by setting necessary event masks for the even callbacks and injecting my helper functions.
I am able to get the call graphs and time taken of the functions in a web request. And also if the code has caught exceptions i am able to get that using "COR_PRF_MONITOR_EXCEPTIONS" .
But if there are any uncaught exceptions in request how to get the details of it. (the details that will be displayed on the browser )
How to get the snapshot and reason of the error.? Is there any particular function in .Net that i should instrument and analyse it's parameters to get the details of the exceptions thrown?
Example: I can get the DB connection name from the parameter of SqlCommand:Open(..) method. Likewise is there any particular function i should instrument into?
Or can some one tell how to get the error details from the call backs that "ICorProfilerCallback*" provides ? like ExceptionThrown,ExceptionSearch* callbacks..
./Selva