Solved

VS2005-Debug options

Posted on 2011-09-13
5
235 Views
Last Modified: 2012-05-12
My VS2005 solution contains localhost website (File--> New---> Web Site) which uses MyDll.dll (written in C#)
I would like to debug my Web-site (which calls the method from MyDLL)and debug the code in MyDll.dll when execution goes thru
MyDll. I know that I can add project containing MyDll files (C# class) to the solution - it will allow me to debug As described above.
MY questions is: Is it possibe to debug (to step thru lines of code in my Web-site and MyDll when execution goes thru MyDll) Without Adding project containing MyDll files (C# class) to the solution??
0
Comment
Question by:niceguy971
  • 2
  • 2
5 Comments
 
LVL 10

Accepted Solution

by:
Mez4343 earned 250 total points
Comment Utility
see this http://stackoverflow.com/questions/1130417/how-to-debug-a-referenced-dll

If your trying to debug a dll file without a having all the source code, you will need the debugging symbols (the "pdb" file) to be in the same folder as the dll. Check that your projects are generating debug symbols (project properties => Build => Advanced => Output / Debug Info = full); and if you have copied the dll, put the pdb with it.

 
0
 
LVL 40

Expert Comment

by:Jacques Bourgeois (James Burger)
Comment Utility
Yes, but you have to set a reference to the source code instead of using a reference to the dll as you usually do.

Add your dll project to you ASP.NET application with File...Add...Existing project.

In the ASP project, go to the Reference window, but instead of adding the reference from the .NET or Browse tab, add it from the Project tab. You will thus reference the source code. If debugging is enabled for the dll project (as explained by Mez4343), you will be able to set breakpoint and move step by step into as if the ASP and dll projects where only one.
0
 

Author Comment

by:niceguy971
Comment Utility
So If I added before the DLL reference from the  Browse tab..Does It Mean I need to delete

the DLL reference and Add Project reference from the Project tab??
0
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 250 total points
Comment Utility
Yes.

You cannot have two references to the same project. The compiler would not know which one to use.
0
 

Author Closing Comment

by:niceguy971
Comment Utility
Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now