Hi,
I have a Class Library developed in Visual Studio 2005.
I want to test it using Windows Application.. I wrote Windows App also..
If I want to Debug Methods in Class Library from Windows App, How can I do it
right now I added Two Projects under same solution and selected Windows App as Start Project.. But debugger is not going to Class Library..
Suggest me.
Thanks

Debug Class Library from Windows Application
E10
Hi,
1) Do you have a reference from the windows app to the class library Is it a reference to the class library PROJECT or to the class library ASSEMBLY (or if you aren't sure, which tab of the dialog did you use to add the reference )
I added DLL (Add Reference) to Windows App, but both are under same solution.
2) How/where is the windows app calling into the class library
Both are under same solution file and on same PC
3) Do you have Just My Code turned on (see Tools > Options > Debugging > "Enable Just My Code")
No, is it necessary. I will try.
4) How do you expect to end up debugging into the class library Are you using a breakpoint, expecting an exception, stepping in Are you certain execution is going into the class library where you're expecting it
I placed a Breakpoint in Class Library method.. and I want to step into that, when it is called from Windows App. For example here..
Windows App:
Dim obj as New TestClass.Employee
Obj.CallEmp('1234','ABCD','')
I put a breakpoing at obj.CallEmp in Windows App and at Public Function CallEmp (....) in Class Library.
So that i can debug.
Thanks
ŁukaszS
Hi Seshu,
A few questions that might help diagnose your problem...
1) Do you have a reference from the windows app to the class library Is it a reference to the class library PROJECT or to the class library ASSEMBLY (or if you aren't sure, which tab of the dialog did you use to add the reference )
2) How/where is the windows app calling into the class library
3) Do you have Just My Code turned on (see Tools > Options > Debugging > "Enable Just My Code")
4) How do you expect to end up debugging into the class library Are you using a breakpoint, expecting an exception, stepping in Are you certain execution is going into the class library where you're expecting it
Thanks,
- Bill
Ian Thomas
Hey,
Don't add Compiled DLL as a Reference to the Windows Project.
Add Class Library Project as a Reference.
Windows Application -> Project Properties -> Add Reference -> Projects
Hope it helps!