Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ VS 2012中的RPC调试_C++_Windows_Visual C++_Visual Studio 2012_Com - Fatal编程技术网

C++ VS 2012中的RPC调试

C++ VS 2012中的RPC调试,c++,windows,visual-c++,visual-studio-2012,com,C++,Windows,Visual C++,Visual Studio 2012,Com,作为参考,我尝试在启动COM客户端组件时自动附加和调试COM服务器组件。COM服务器DLL托管在代理进程内。根据提到的链接文档,我希望看到一个称为本机页面的东西 启用RPC调试的步骤 On the Tools menu, click Options. In the Options dialog box, click the Debugging folder. Click the Native page. Select the RPC debugging check

作为参考,我尝试在启动COM客户端组件时自动附加和调试COM服务器组件。COM服务器DLL托管在代理进程内。根据提到的链接文档,我希望看到一个称为本机页面的东西

启用RPC调试的步骤

    On the Tools menu, click Options.
    In the Options dialog box, click the Debugging folder.
    Click the Native page.
    Select the RPC debugging check box.
但是在VS 2012(Premium)的选项页面中,我看不到任何可以启用RPC调试的本机页面

知道如何从VS2012启用RPC调试吗

我遵循的一般程序有点幼稚

  • 我在调试器中启动客户机进程
  • 一旦我通过COCreateInstance,我会在TaskManager中记录dllhost进程(注意我通过代理运行COM)
  • 现在从任务管理器,我附加了一个调试器,然后继续调试服务器进程

  • 调试节点下以前有一个名为“Native”的属性页。它不再存在,在VS2012中删除。没关系,我从来没有让它工作过一次。@HansPassant:我正在按照我在回答中更新的流程调试COM服务器进程。您是否希望为VS2012推荐一个推荐流程?您正在做的很好。您还可以通过在服务器代码中使用_debugbreak()来调用jit调试器。我经常使用。@HansPassant:谢谢你,因为我一直在想我是否需要眼镜,因为MSDN在2018年更新的一篇文章中仍然提到这一点。但我想我不是唯一一个在VS2017中找不到这个选项的人。