开发者

debugging both managed c# code and unmanaged c++ code in one solution

开发者 https://www.devze.com 2023-01-09 07:37 出处:网络
I have a solution with an unmanaged c++ dll project in it and a c# managed project that calls dll using PInvoke.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消