如何从Perl脚本客户端调试com服务器 [英] How to Debug com server from perl script client

查看:87
本文介绍了如何从Perl脚本客户端调试com服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用ATL(.dll)构建的COM组件,并通过perl脚本访问了COM组件的方法.
当我从命令行运行perl脚本时,我想调试ATl com组件.
我尝试在com组件中放置断点,但该命中了.
请帮我

I have a Com component built using ATL (.dll) and im accessing the the methods of the COM component from perl script.
When i run the perl script from command line i want to debug the ATl com component.
I tried putting breakpoint in the com component but it is hitting.
Please help me out

推荐答案

0.在您的服务器上,提供一个带有消息框调用的虚拟函数
1.在您的客户端上,在创建服务器实例后调用此虚拟函数
2.启动您的客户端应用程序
3.请勿在即将到来的方框中按确定"按钮
4.启动VS并将其调试器附加到客户端应用程序
5.打开服务器的源并设置一个立即
鸟嘴点 6.然后在客户端框中按确定"按钮
7.现在,您应该到达断点:)
0. At your server, provide a dummy function with a message box call inside
1. At your client, call this dummy function after the creating of server''s instance
2. Start your client application
3. Do not press the OK button at the coming box
4. Start the VS and attach its debugger to the client application
5. Open a server''s source and set a beakpoint now
6. Then press the OK button at the cliet''s box
7. Now you should land at your breakpoint :)


这篇关于如何从Perl脚本客户端调试com服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆