471,350 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Debuggin Dlls?

Hi guys

I have an app that is quite large. As such any common classes and so forth i
am building separately and using the assembly dll as a reference, also any
large chunks of code that i am happy with i do the same so that the
programme can be built up piece by piece.

My issue is when debugging if there is an error in the dll classes i would
like to go in and see it.

Whats the best way to do this?

Thanks
Feb 21 '06 #1
4 1179
Hello, Daniel!

D> My issue is when debugging if there is an error in the dll classes i
D> would like to go in and see it.

D> Whats the best way to do this?

Set break point there. If your dlls are situated on the separate solutions then you can build them in debug mode.
Then open the startup prject ( that uses the dlls ), open source file of the dll of interest and put a break point there.

Debugger will know where to look, however make sure that application has references to the assemblies (dlls) that were compiled in debug mode...

Another, solutions is to include all the separate projects into one solution. It will simplify setting breakpoint in the dlls source code..

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Feb 21 '06 #2
Hi,

Good to have them as Dlls, add all your projects into one single solution,
and instead of adding the dll as reference, add them as a project reference.
Now put a break point where you would like to debug and see the VS debugger
stop there during execution.

HTH
--
Kannan.V
Home : http://www.kannanv.com
Blog : http://kannanv.blogspot.com
Blog : http://spaces.msn.com/members/visitkans
Web : http://www.dotnetlounge.net

"Daniel" wrote:
Hi guys

I have an app that is quite large. As such any common classes and so forth i
am building separately and using the assembly dll as a reference, also any
large chunks of code that i am happy with i do the same so that the
programme can be built up piece by piece.

My issue is when debugging if there is an error in the dll classes i would
like to go in and see it.

Whats the best way to do this?

Thanks

Feb 21 '06 #3
The love i am feeling for you guys.....seriously, big love.

Thanks! Will save me a LOT of headaches.

"Daniel" <Da*****@vestryonline.com> wrote in message
news:eQ**************@TK2MSFTNGP11.phx.gbl...
Hi guys

I have an app that is quite large. As such any common classes and so forth
i am building separately and using the assembly dll as a reference, also
any large chunks of code that i am happy with i do the same so that the
programme can be built up piece by piece.

My issue is when debugging if there is an error in the dll classes i would
like to go in and see it.

Whats the best way to do this?

Thanks

Feb 21 '06 #4
There is a program called ILDASM that is shipped with VS2005 i think.
That program lets you view all .exe and .dll
Its perfect to see what methods that are in that file and variable....i use
it alot.

jsut search for it on your computer, its likely you already have it

"Daniel" <Da*****@vestryonline.com> wrote in message
news:eQ**************@TK2MSFTNGP11.phx.gbl...
Hi guys

I have an app that is quite large. As such any common classes and so forth
i am building separately and using the assembly dll as a reference, also
any large chunks of code that i am happy with i do the same so that the
programme can be built up piece by piece.

My issue is when debugging if there is an error in the dll classes i would
like to go in and see it.

Whats the best way to do this?

Thanks

Feb 21 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by amjad | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.