This project has moved. For the latest updates, please go here.

Debugging CLRProfiler

Coordinator
Dec 10, 2012 at 5:40 PM

A user asks: "Could you please explain(or give a link) how to debug ProfilerCallback implementation from ProfilerOBJ in Visual Studio 2012?"

There are a couple links on my blog on debugging profilers in general:
http://blogs.msdn.com/b/davbr/archive/2007/12/11/debugging-your-profiler-i-activation.aspx
http://blogs.msdn.com/b/davbr/archive/2007/12/18/debugging-your-profiler-ii-sos-and-ids.aspx

In terms of code specific to CLRProfiler.exe & ProfilerObj.dll, there is no documentation that steps you through the code. So you'll just want to set breakpoints in, say, Sources\profilerOBJ\ProfilerCallback.cpp, since that's where the callback interface gets implemented, and step through to learn the code.