VS.NET Debugging

Posted on 2011-04-26
Last Modified: 2012-05-11
I have two projects.  Project #1 is a DLL that is used by Project #2.  When I first started on the project I was using Visual Studio 2005.  Fast forward, that computer crashed, and I had to get a new one.  And now I'm running Visual Studio 2010 (Not because of it's a new computer, but I needed better Multi Threading debugging tools.)  

When I first started developing on these projects, I had both projects open and I would write code.  I would then run project #2, and if there was any bad code in Project #1 that caused an error, Prioject #2 would magically open up the source file from Project #2 and show me the error in Visual Studio 2005.  My guess is that I had a debugging setting on or off that allowed this that does not turned on by default in 2010.  Does anyone know what setting allows this feature of debugging?

Question by:Iamtehbest
    LVL 16

    Accepted Solution

    Hi. It's been a while since I've tried debugging across solutions. Have you considered adding both projects to the same solution? I find it's a much easier environment to work in. You can then set the reference of the second project to the first PROJECT, not the binary output of it.

    I wonder if your reference in the second project is set to a COPY of the binary of the first project? Check the reference. Go into properties of it. See if it's set to copy local. That approach makes a snapshot of the dll.

    LVL 83

    Expert Comment

    Also make sure the projects are in Debug config.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    761 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

    7 Experts available now in Live!

    Get 1:1 Help Now