debugging both managed c# code and unmanaged c++ code in one solution
I have a solution with an unmanaged c++ dll project in it and a c# managed project that calls dll using PInvoke. Is it possibl开发者_如何学Goe to debug both managed and unmanaged code so that I see what is going on "inside" of that dll?
Yup. If I'm not mistaken, it should do this automatically, as long as the profile is set to "Debug".
Edit: Oh, I forgot one thing: In the debugging options for the managed project, make sure you have the option "Enable unmanaged code debugging". Then it should step into the unmanaged code.
精彩评论