Debugging In Visual Studio.NET 2005...

I have a component with source. It's been compiled in VS2500. Therefore I also have the DLL. I've installed it into the Toolbox.

I create a new c# app and place my component onto the form. The comp's dll path get into the references of my projekt.

From the form's code I call one of the comp's methods, and debug it.

Everything is ok, but when I want to debug into my comp' source (step into the method), it simply go forward. Why

Once I could achieve to appear an opendialog and it ask for the comp's source file, but unfortunately I can't do this again...

Could sy help

 




Answer this question

Debugging In Visual Studio.NET 2005...

  • greenie

    Hi,

    Add the project with source of the DLL also added to the solution and place a breakpoint in the source. That should enable the debugger to flow through it and place a break point. Also, make sure the versions match between the DLL and the source.

    Regards,
    Vikram

  • _Donnie-Darko_

    The reason why you initially were not able to debug the source for your component is because the path to the source file may have accidently been added to the "Do not look for these files" pane in the Debug Source Files tab under the solution properties.

    Whenever the source files for a component are moved, the debugger needs to be told how to find them. To make this task easier, you can add the path for the source files to the Debug Sources Files tab which you can find under the Solution properties.

    HabibH.

  • nicope

    The interesting is: After that I create a new solution with a new c# project and place the comp onto the form. Now I can debug into the comp's source without adding the

    comp's source to the solution. So if I do it once then the Environment learn that the comp has  source. Even If I change the comp's source path then during debuging

    the Environment show an opendialog to get the new path for the comp's source. Everything is ok.

    BUT: my problem is that I have many comp like that and I wouldn't like to do this with each comp, especially not if once I have to reinstall the VS2005 for any reason.
    Could I say the environment in a direct way which comps or which references has source


     



  • Debugging In Visual Studio.NET 2005...