469,933 Members | 2,452 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,933 developers. It's quick & easy.

How To: Debug a .NET DLL ?

I've created several DLL's that I use in other projects. I "Add Reference"
to these other projects pointing to my DLL. Probelm is, I can't seem to be
able to step into my DLL code (from these other projects) -- I've tried
adding the source code project (that was used to build the DLL) into my
current solution, but I still can't seem to step into the code of my DLL.

Any suggestion?

I must be missing something simple?

Thanks, Rob.
Nov 21 '05 #1
4 10378
In article <u1**************@TK2MSFTNGP10.phx.gbl>, ro*****@pacbell.net
says...
I've created several DLL's that I use in other projects. I "Add Reference"
to these other projects pointing to my DLL. Probelm is, I can't seem to be
able to step into my DLL code (from these other projects) -- I've tried
adding the source code project (that was used to build the DLL) into my
current solution, but I still can't seem to step into the code of my DLL.

Any suggestion?


Are the other DLL's compiled in debug mode?

Does the PDB file that gets generated during a debug compile exist in
the same directory as the DLL?

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 21 '05 #2
Patrick,

Yes and Yes.

I assume that I am supposed to add the DLL source code project/assembly to
my primary solution? Is there anything else I need to do?

In my case:

I have a Windows Service, that references a couple of other DLL's I created.
I have no problem debugging my Windows Service solution (i.e. using Debug
Process, select the running service, attach, etc.), but no matter what I do,
I can't seem to step into the DLL code that is called from my Windows
Service.

Do I need to resort to other methods as it seems debugging DLL's in a
Windows Service is just not supported?

I'll code a Windows Form app to test the DLL and see if this is just an
issue with DLLs in Windows Services -- it shouldn't be, but...

Rob.

"Patrick Steele [MVP]" <pa*****@mvps.org> wrote in message
news:MP************************@msnews.microsoft.c om...
In article <u1**************@TK2MSFTNGP10.phx.gbl>, ro*****@pacbell.net
says...
I've created several DLL's that I use in other projects. I "Add
Reference"
to these other projects pointing to my DLL. Probelm is, I can't seem to
be
able to step into my DLL code (from these other projects) -- I've tried
adding the source code project (that was used to build the DLL) into my
current solution, but I still can't seem to step into the code of my DLL.

Any suggestion?


Are the other DLL's compiled in debug mode?

Does the PDB file that gets generated during a debug compile exist in
the same directory as the DLL?

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele

Nov 21 '05 #3
Update:

I ran a test project (standard Windows Form) loading the my DLL (Add
Reference) and loaded the DLL source code project -- this worked, I could
step into the DLL code.

So, it appears that stepping into DLL code via a Windows Service project
using the Debug Processes is just not supported. Unless someone has some
insights that I'm missing?

Rob.

"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:uv**************@TK2MSFTNGP09.phx.gbl...
Patrick,

Yes and Yes.

I assume that I am supposed to add the DLL source code project/assembly to
my primary solution? Is there anything else I need to do?

In my case:

I have a Windows Service, that references a couple of other DLL's I
created. I have no problem debugging my Windows Service solution (i.e.
using Debug Process, select the running service, attach, etc.), but no
matter what I do, I can't seem to step into the DLL code that is called
from my Windows Service.

Do I need to resort to other methods as it seems debugging DLL's in a
Windows Service is just not supported?

I'll code a Windows Form app to test the DLL and see if this is just an
issue with DLLs in Windows Services -- it shouldn't be, but...

Rob.

"Patrick Steele [MVP]" <pa*****@mvps.org> wrote in message
news:MP************************@msnews.microsoft.c om...
In article <u1**************@TK2MSFTNGP10.phx.gbl>, ro*****@pacbell.net
says...
I've created several DLL's that I use in other projects. I "Add
Reference"
to these other projects pointing to my DLL. Probelm is, I can't seem to
be
able to step into my DLL code (from these other projects) -- I've tried
adding the source code project (that was used to build the DLL) into my
current solution, but I still can't seem to step into the code of my
DLL.

Any suggestion?


Are the other DLL's compiled in debug mode?

Does the PDB file that gets generated during a debug compile exist in
the same directory as the DLL?

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele


Nov 21 '05 #4
In article <uv**************@TK2MSFTNGP09.phx.gbl>, ro*****@pacbell.net
says...
I have a Windows Service, that references a couple of other DLL's I created.
I have no problem debugging my Windows Service solution (i.e. using Debug
Process, select the running service, attach, etc.), but no matter what I do,
I can't seem to step into the DLL code that is called from my Windows
Service.


Where is this DLL located? In the GAC?

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by emma middlebrook | last post: by
7 posts views Thread by Srinivasa Rao | last post: by
9 posts views Thread by dee | last post: by
6 posts views Thread by swartzbill2000 | last post: by
6 posts views Thread by pauldepstein | last post: by
6 posts views Thread by Andrew Rowley | last post: by
reply views Thread by BA | last post: by
1 post views Thread by gfergo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.