Debug Excel DNA source

Sep 3, 2013 at 5:25 PM
Hi All,

Can anyone provide instructions on how to attach a debugger to step into the source code of Excel DNA itself? I am able to attach the debugger to my .net assembly but not to Excel DNA's source.

I want to step through the code to better understand the loading process.
Sep 4, 2013 at 6:36 AM
OK I got the breakpoints to work for the ExcelDNA.Loader assembly by choosing the correct version of the .net runtime while attaching.

However breakpoints in the C++ code still don't get hit even though I can see the symbols for the xll loaded in the modules window and I can see the C++ functions in the call stack and even double click them to navigate to the source.

Any pointers?
Sep 4, 2013 at 7:06 AM
Choosing just the Native option when attaching to Excel.exe allows the breakpoints in the C++ code to be hit. Choosing both native and managed does not. I am not sure why but I can live with it.