Can I debug a library in C# Express 2005

S

steve bull

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
 
D

David Browne

steve bull said:
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
 
S

steve bull

Great - thanks.

Steve




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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top