PC Review


Reply
Thread Tools Rate Thread

How do debugg a .net dll

 
 
tony.johansson
Guest
Posts: n/a
 
      1st Sep 2011
Hello!

I have a solution that create a class library dll.
I have also a solution where the main is located so this solution create a
exe file.

Now to my question if I want to debug the dll do I then have to add the dll
project to the solution where the main is located.

//Tony

 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      2nd Sep 2011
On 9/1/2011 7:17 AM, tony.johansson wrote:
> I have a solution that create a class library dll.
> I have also a solution where the main is located so this solution create
> a exe file.
>
> Now to my question if I want to debug the dll do I then have to add the
> dll project to the solution where the main is located.


Other will have to answer the question you asked.

I will just point out that I would choose another
strategy:
* write extensive unit tests for the class library to
find most of the bugs before another project
consumes it
* if necessary to track down the bug use the debugger
in the class library project
* modify the class library to use a logging framework
like log4net (or NLog or Enterprise Library or whatever
you prefer) to be able to trace what is going on inside
the class library

Arne



 
Reply With Quote
 
Arno
Guest
Posts: n/a
 
      2nd Sep 2011
On 1 Sep., 13:17, "tony.johansson" <tony.johans...@systeam.se> wrote:
> Hello!
>
> I have a solution that create a class library dll.
> I have also a solution where the main is located so this solution create a
> exe file.
>
> Now to my question if I want to debug the dll do I then have to add the dll
> project to the solution where the main is located.
>
> //Tony


Hello Tony,

If I well understood your question, you wrote a dll, referenced it in
an exe project,
and your goal is to debug your dll when you run your exe application.
You have two ways to do it :
- As you said, you can add the dll to your exe solution and
referenced the dll project
from your exe application
- You can also open the dll project, run your application, and
attach the application process
to your dll ==> Go to debug menu, choose attach to process, and in the
list choose the application
process
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugg Class David Jones vpac org> Windows XP Embedded 2 1st Dec 2007 11:59 AM
dr watson debugg...again storage.aisha@gmail.com Windows XP Performance 3 21st Nov 2006 08:50 PM
Internet Explorrer Error: Debugg James Dawson Windows XP Basics 2 21st Mar 2006 01:01 AM
what is remote debugg? (VS.NET 2005 Standard) Roger Microsoft VB .NET 1 28th Nov 2005 09:20 AM
How do I debugg JavaScript .NET MS News Microsoft ASP .NET 3 1st Aug 2003 06:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:01 PM.