I am developing in VS 2005. In my solution, I have couple of projects. One contains all classes. The other contain all wondows forms. When I tried to step thru in debug mode, it never allowed me to step into one of my class. This is wierd. Can anyone explain why?
How did you set your reference to the other project? If you just hit the "Browse" button to do it, the reference is pointing to the binary, and the debugger may/maynot be able to show you the code.
Do a Project reference, instead.
Chip H.
____________________________________________________________________ If you want to get the best response to a question, please read FAQ222-2244 first
Chip,
I not sure what you meant. But I instantiate the class within my Onload routine of my form. The I just simply call the class function to do certian job. All I want to know is why I can not step through my code in that class when I run it in debug mode. Is this bug in Visual Studio 2005?
In order for one project to use the other project's objects, a reference must be set. Typically, you right-click on the References node in the solution explorer pane, and select "Add Reference". You'll then be presented with a couple of different ways and types of references to add.
For inter-project references, go to the Projects tab, and select the other project in your solution that you need to add a reference for.
Afterwards, use an Imports statement to more-easily access the namespace of the other project.
Chip H.
____________________________________________________________________ If you want to get the best response to a question, please read FAQ222-2244 first
Chip,
In "Add reference" tab "Projects", it does have that class listed. It will return the value from the class but would not letting me stepping into for troubleshooting.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.