调试网页上的ActiveX控件 [英] Debugging ActiveX controls on a web page

查看:57
本文介绍了调试网页上的ActiveX控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP 3.0页面,其中包含我在VC ++中编写的ActiveX控件

v6.0。在Visual Interdev下,我可以很好地调试ASP代码。但是,当我到达一个引用我的ActiveX控件的ASP行时,调试器

不会进入我的C ++代码,允许我调试ActiveX控件。

。如果

我从VC ++加载ActiveX控件项目和Internet Explorer作为

调试可执行文件我遇到了同样的问题。 ActiveX

控件的代码中的断点不受尊重。我知道我正在编译调试模式,任何

想法如何让这些断点得到尊重?


非常感谢。

解决方案

" Andrew Chalk" <交流**** @ XXXmagnacartasoftware.com>在消息中写道

新闻:#9 ************** @ TK2MSFTNGP11.phx.gbl ...

我有一个ASP包含我在
VC ++ v6.0中编写的ActiveX控件的3.0页面。在Visual Interdev下,我可以很好地调试ASP代码。但是,当我到达引用我的ActiveX控件的ASP行时,调试器不会进入我的C ++代码,允许我调试ActiveX控件。
如果我从VC ++加载ActiveX控件项目和Internet Explorer作为调试可执行文件我有同样的问题。 ActiveX
控件的代码中的断点不受尊重。我知道我正在编译调试模式,任何想法如何让这些断点得到尊重?




我不知道你是怎么回事拥有引用ActiveX控件的ASP代码,因为

ASP是服务器端,ActiveX控件是客户端......


" Tom卡明斯基[MVP]" < tomk(A @ T)mvps(D.O.T)org>在消息中写道

news:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

" Andrew Chalk <交流**** @ XXXmagnacartasoftware.com>在消息中写道
新闻:#9 ************** @ TK2MSFTNGP11.phx.gbl ...

我有一个ASP 3.0页面包含我在

中编写的ActiveX控件
VC ++

v6.0。在Visual Interdev下,我可以很好地调试ASP代码。但是,当我到达一个引用我的ActiveX控件的ASP行时,调试器
不会进入我的C ++代码,允许我调试ActiveX控件。


如果

我使用Internet Explorer从VC ++加载ActiveX控件项目作为
调试可执行文件我遇到了同样的问题。 ActiveX
控件的代码中的断点不受尊重。我知道我正在编译调试模式,任何想法如何让这些断点得到尊重?



我不知道你是如何拥有ASP代码的引用一个ActiveX控件,因为ASP是服务器端而ActiveX控件是客户端...



我认为他的意思是一个Activex dll,当然可以使用它asp。


在回答OP时,我没有VC ++的经验,但类似的

情况发生在VB中,你需要什么do取消注册当前

dll:


c:\ winnt \ system32 \ resvr32" c:\ yourldd.dll" -u


这样可以防止从asp页面到这个dll的调用转到编译的dll

,而是转到你的代码中。你必须从Visual C ++ ide中开始调试



-

John Blessing

< a rel =nofollowhref =http://www.LbeHelpdesk.comtarget =_ blank> http://www.LbeHelpdesk.com - 价格适合所有的服务台软件

business
http://www.room-booking-software .com - 安排房间&设备预订

为您在网上的会议/课程。
http ://www.lbetoolbox.com - 从MS Outlook中删除重复项


是控制服务器端(从ASP脚本代码调用来执行某些操作

服务器)或客户端。


如果是服务器端(这可能不是最简单但对我有用):


将应用程序保护设置为低对于指示的虚拟目录。

启动任务管理器并找到inetinfo进程。

右键单击该进程并选择debug。如果你在

系统上有VC ++,你应该进入C ++调试器。

打开项目文件并根据需要设置断点(你可能需要

运行受影响的网页一次加载控件dll)


-

Mark Schupp

负责人开发

诚信电子学习
www.ielearning.com

" Andrew Chalk" <交流**** @ XXXmagnacartasoftware.com>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP11.phx.gbl ...

我有一个ASP 3.0页面,其中包含我在
VC ++ v6.0中编写的ActiveX控件。在Visual Interdev下,我可以很好地调试ASP代码。但是,当我到达引用我的ActiveX控件的ASP行时,调试器不会进入我的C ++代码,允许我调试ActiveX控件。
如果我从VC ++加载ActiveX控件项目和Internet Explorer作为调试可执行文件我有同样的问题。 ActiveX
控件的代码中的断点不受尊重。我知道我正在编译调试模式,任何想法如何让这些断点得到尊重?

非常感谢。



I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++
v6.0. Under Visual Interdev I can debug the ASP code just fine. However,
when I get to an ASP line that references my ActiveX control the debugger
does not go inside my C++ code allowing me to debug the ActiveX control. If
I load the ActiveX control project from VC++ with Internet Explorer as the
debug executable I have the same problem. Break points in the ActiveX
control''s code are not respected. I know I''m compiling in Debug mode, any
idea how to get these breakpoints to be respected?

Many thanks.

解决方案

"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:#9**************@TK2MSFTNGP11.phx.gbl...

I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++ v6.0. Under Visual Interdev I can debug the ASP code just fine. However,
when I get to an ASP line that references my ActiveX control the debugger
does not go inside my C++ code allowing me to debug the ActiveX control. If I load the ActiveX control project from VC++ with Internet Explorer as the
debug executable I have the same problem. Break points in the ActiveX
control''s code are not respected. I know I''m compiling in Debug mode, any
idea how to get these breakpoints to be respected?



I''m not sure how you have ASP code that references an ActiveX control, as
ASP is server-side and ActiveX controls are client side ...


"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:#9**************@TK2MSFTNGP11.phx.gbl...

I have an ASP 3.0 page that contains an ActiveX control that I wrote in


VC++

v6.0. Under Visual Interdev I can debug the ASP code just fine. However,
when I get to an ASP line that references my ActiveX control the debugger
does not go inside my C++ code allowing me to debug the ActiveX control.


If

I load the ActiveX control project from VC++ with Internet Explorer as
the
debug executable I have the same problem. Break points in the ActiveX
control''s code are not respected. I know I''m compiling in Debug mode, any
idea how to get these breakpoints to be respected?



I''m not sure how you have ASP code that references an ActiveX control, as
ASP is server-side and ActiveX controls are client side ...


I presume he meant an Activex dll, which certainly can be used by asp.

In answer to the OP, I don''t have experience of VC++, but the similar
situation occurs in VB and what you have to do is unregister the current
dll:

c:\winnt\system32\regsvr32 "c:\yourdll.dll" -u

This prevents calls from the asp pages to this dll going to the compiled dll
and instead will go to your code in the ide. You have to start the debug
from within the Visual C++ ide.
--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook


Is the control server-side(called from ASP script code to do something on
the server) or client-side.

If server-side (this may not be the simplest but it works for me):

Set application protection to "low" for the indicated virtual directory.
Launch task manager and find the inetinfo process.
Right-click on the process and select "debug". If you have VC++ on the
system you should be take into the C++ debugger.
Open your project files and set breakpoints as desired (you may need to
run the affected web page once to load the control dll)

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...

I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++ v6.0. Under Visual Interdev I can debug the ASP code just fine. However,
when I get to an ASP line that references my ActiveX control the debugger
does not go inside my C++ code allowing me to debug the ActiveX control. If I load the ActiveX control project from VC++ with Internet Explorer as the
debug executable I have the same problem. Break points in the ActiveX
control''s code are not respected. I know I''m compiling in Debug mode, any
idea how to get these breakpoints to be respected?

Many thanks.



这篇关于调试网页上的ActiveX控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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