如何通过调用应用程序来调试DLL [英] How to debug a DLL by calling in application

查看:117
本文介绍了如何通过调用应用程序来调试DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个vb.net dll我想调试那个。我知道我们不能单独调试dll。

所以我创建了一个示例控制台应用程序并在那里附加了nmy dll项目。

如何调用我的dll方法进入该控制台应用程序进行调试?



先谢谢。



我的尝试:



这是我的控制台应用程序代码

导入SQLMigration.clsCommon

模块模块1

Public gobjCommon As SQLMigration.clsConfig



Sub Main()

gobjCommon =新的SQLMigration.clsConfig



End Sub



结束模块

我没有得到如何调用和调试我的dll。

Hi,

I have a vb.net dll i want to debug that.I know that we can't debug dll alone.
so i have created one sample console application and attached nmy dll project there.
How can i call my dll methods into that console application for debugging?

Thanks in Advance.

What I have tried:

This is my console application code
Imports SQLMigration.clsCommon
Module Module1
Public gobjCommon As SQLMigration.clsConfig

Sub Main()
gobjCommon = New SQLMigration.clsConfig

End Sub

End Module
I am not getting how to call and debug my dll.

推荐答案

正如Richard所提到的,你需要添加调用dll中某个方法的代码并在其上放置一个断点。然后你可以调试它。



听起来你已经在你的控制台应用程序中引用了你的dll所以现在你只需要调用它。
As Richard mentioned you need to add code that calls one of the methods in your dll and put a breakpoint on it. Then you can debug it.

It sounds like you already have a reference in your Console app to your dll so now you just need to call it.


这篇关于如何通过调用应用程序来调试DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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