Click here to Skip to main content
15,174,182 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 11-Jun-18 6:02am
Comments
Richard MacCutchan 11-Jun-18 8:25am
   
You have to call the methods in the dll that you are trying to debug.

1 solution

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.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900