简体   繁体   English

如何调试AC#ActiveX

[英]How to debug a c# activex

I have ac# project that generate my activex component. 我有一个生成我的activex组件的ac#项目。 The debug project is a simple web application that call the registered dll. 调试项目是一个简单的Web应用程序,它调用已注册的dll。

Javascript debug points and exceptions works fine. JavaScript调试点和异常工作正常。

How can i catch debug points and exception in the ActiveX c# project? 如何在ActiveX c#项目中捕获调试点和异常?

Normally I would attach debugger to the process which calls the component. 通常,我会将调试器附加到调用组件的过程。 In visual studio: Debug/Attach to process... 在Visual Studio中:调试/附加以进行处理...

You can also put Debug.Assert(false) in the place where you want to stop to generate a debug prompt. 您还可以将Debug.Assert(false)放在要停止生成调试提示的位置。 Sometimes it works. 有时可以。

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

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