【发布时间】:2013-05-23 09:54:27
【问题描述】:
构建一个 firebreathplugin,其中有一个本地 dll、c# 类库 dll 和一个 c++/CLI(类库)包装器 dll。这里没有申请。看到堆栈溢出的其他帖子。调试混合模式.but 是徒劳的吗? 更新
1. in c# dll properties I have "Enable unmanaged code debugging" unchecked
2. in c++/CLI wrapper dll properties, I have set Debug mode as mixed and set Attach to Yes
3. in native c++ plugin dll (firebreath generated) I set Properties->Debugging>Debug Mode->Mixed and Attach as "Yes"
c++/cli wrapper dll 的编译器是 /clr,而原生 c++ 的编译器设置为“不支持 /clr” 为此使用本地 WINDOWS 调试器 要调试插件,我只是按照 firebreath 主页中描述的步骤进行操作(即单击 Debug 菜单,然后单击 Attach to process..我选择了 iexplore.exe) 希望我能尽快得到答复?
【问题讨论】:
-
所有的dll/exe是否都是用相同的VS版本、相同的配置和平台编译的?
-
是的@stijn 先生!与 2010 年相比
-
“调试混合模式”。详细描述你做了什么。查看“模块”窗口——您是否在列表中同时看到本机和托管 dll?
-
@Matt Smith 是的,我在本机 c++ 插件 dll 的属性中看到了这两个模块
-
@PratikPattanayak,不确定您所说的“在本机 c++ 插件 dll 的属性中”是什么意思。连接后,转到 Debug->Windows->Modules,看看是否所有预期的 dll 都显示在那里。
标签: c# debugging dll c++-cli firebreath