开发者

Debugging COM libs in .NET (Visual Studio 2010)

I use a 开发者_如何学PythonCOM library (3rd party) with interop in a C# application. How can I debug objects of this library in VS2010? Or is this not possible?


A similar question would be "how do I debug my operating system". You don't, you keep your fingers crossed that it will give you a decent error code and message when you use it improperly. Even if you do find a bug in the library, there's nothing you can do about it unless you have the source code and the right to rebuild it.

Review the license agreement you've got to use this library for support options.


To enable debugging of COM dlls you have to do the following:

Projects Settings of the .NET Project -> Debug -> "Enable unmanaged code debugging" has to be selected

Now you can attach an unmanaged debugger/debug into unmanaged dlls.

To step into the source of the dll you need the appropriate pdb files and source files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜