简体   繁体   English

如何从VS2010中的另一个DLL调试DLL

[英]How to debug a DLL from another DLL in VS2010

I have 3 projects (A, B and C) A is in C#, B and C are in C++. 我有3个项目(A,B和C),A在C#中,B和C在C ++中。 A references B as a dll and B references C as a dll. A将B引用为dll,而B将C引用为dll。 A is the main project. A是主要项目。 I can debug B attaching process in the Debug menu, but I can't debug C. 我可以在“调试”菜单中调试B附加过程,但不能调试C。

I unchecked the "Enable Just My Code" option: menu Tools --> Options --> Debugging --> Enable Just My Code. 我取消选中“启用我的代码”选项:菜单工具->选项->调试->启用我的代码。

But it seems that something is missing. 但是似乎缺少了一些东西。 I am sure that code of C is executing since I have coded some logging. 我确定C的代码正在执行,因为我已经编写了一些日志记录。

I can't change the architecture of the projects, like moving code of C to B or something like that. 我无法更改项目的体系结构,例如将C的代码移动到B或类似的东西。

I changed too these settings: Debugging->Options->Check both Load DLL exports and Enable RPC Debugging. 我也更改了以下设置:调试->选项->检查加载DLL导出并启用RPC调试。 When Attaching Process, before attach a process click Select and enabled only T-SQL, Managed 4.0 and x86 and finally it worked 在附加进程时,在附加进程之前,单击“选择”并仅启用T-SQL,Managed 4.0和x86,最后它可以工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM