471,599 Members | 1,780 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Can I debug a library in C# Express 2005


how can I debug a code library using C# 2005 Express? I cannot find any way to make the library debuggable - even when I set DEBUG
and No Optimize on the debug panel of the code library's property panel. When I try to invoke the library from a windows app it
tells me the dll needs to be built using debug. The other alternative would be to set devenv as my startup project for the library
but I can find no way to do this with the available menu items.

Do I need to wait for MS to ship the Professional version to do this? Is the Express version limited to single programs?

Thanks,

Steve
Nov 25 '05 #1
2 1602

"steve bull" <bu****@comcast.net> wrote in message
news:h3********************************@4ax.com...

how can I debug a code library using C# 2005 Express? I cannot find any
way to make the library debuggable - even when I set DEBUG
and No Optimize on the debug panel of the code library's property panel.
When I try to invoke the library from a windows app it
tells me the dll needs to be built using debug. The other alternative
would be to set devenv as my startup project for the library
but I can find no way to do this with the available menu items.

Do I need to wait for MS to ship the Professional version to do this? Is
the Express version limited to single programs?

First of all, the easiest way to do this is to add the EXE's project to the
class library's solution. Set the class library as a project dependency,
set the EXE as the startup project and just hit F5.

To generate a class library with full debug info, define DEBUG, disable
optimization and (here's what you missed) set Project
Properties\Build\Advanced\Debug Info to Full.
David
Nov 26 '05 #2


Great - thanks.

Steve


On Fri, 25 Nov 2005 18:08:14 -0600, "David Browne" <davidbaxterbrowne no potted me**@hotmail.com> wrote:

"steve bull" <bu****@comcast.net> wrote in message
news:h3********************************@4ax.com.. .

how can I debug a code library using C# 2005 Express? I cannot find any
way to make the library debuggable - even when I set DEBUG
and No Optimize on the debug panel of the code library's property panel.
When I try to invoke the library from a windows app it
tells me the dll needs to be built using debug. The other alternative
would be to set devenv as my startup project for the library
but I can find no way to do this with the available menu items.

Do I need to wait for MS to ship the Professional version to do this? Is
the Express version limited to single programs?

First of all, the easiest way to do this is to add the EXE's project to the
class library's solution. Set the class library as a project dependency,
set the EXE as the startup project and just hit F5.

To generate a class library with full debug info, define DEBUG, disable
optimization and (here's what you missed) set Project
Properties\Build\Advanced\Debug Info to Full.
David

Nov 26 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by swartzbill2000 | last post: by
5 posts views Thread by Steve Le Monnier | last post: by
4 posts views Thread by Hardy Wang | last post: by
6 posts views Thread by Andrew Rowley | last post: by
5 posts views Thread by =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post: by
reply views Thread by Anwar ali | 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.