473,246 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 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 1662

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: swartzbill2000 | last post by:
Hello, I have a VB 2005 Express project with a TraceListener-derived class to route Debug.Print output to a log file. It works fine for Debug builds. What is the correct combination of changes to...
5
by: Steve Le Monnier | last post by:
I've just noticed that the menu items available in Visual Studio 2005 for the Debug and Build menus differ significantly when compared to the menu items in Visual Studio 2003. On my C#...
4
by: Scythen | last post by:
Hi all, I have a native win32 application that loads C# Class Libraries and I would like to be able to debug the Class Libraries using C# Express. Apparently, there is no way to attach to a...
3
by: TC | last post by:
I'm using Visual Basic 2005 Express. When I use the command Debug.WriteLine("Testing"), nothing appears on the output window. I searched the newsgroups and found this problem reported twice, but...
4
by: Hardy Wang | last post by:
Is there a way I can disable Web Deploy Project to run while I am in debug mode? I think Web Deploy Project is very foolish, it could not detect if code of a website is changed or not, it will...
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
3
by: pb | last post by:
Is it possible to create a class library in visual web developer 2005 express edition and complie into a dll? If so how?
5
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post by:
My question is simple: How does one debug ASP Classic with Microsoft Visual Web Developer Express 2005 ("VWD")? Looming in the back of anyone's mind when you see a posting like this on any...
2
by: Dave Johansen | last post by:
I just converted a solution from Visual Studio 2003 to Visual Studio 2005 and the Debug mode seems to be running just fine, but the Release mode crashes on the following code: std::ifstream...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.